Each workflow in the Process Designer starts with an event.
|Click on the Event element under “Activities” on the left pane and drag & drop it into the drawing area.|
|If you double click on the shape of the activity, the event selection assistant opens. You can also open it by clicking right underneath “Subscribe event” / “Publish event”.|
It guides you to your required event. When subscribing to an Event, you can select events from these categories: Widget Events, Screen Events, Custom Events and System Events. Each category is sorted and searchable.
If you want to use the Event in the User Story you are currently working in, select one of the Events under the tab “Subscribe Event”.
|Widget Events||Events that are available for certain widgets, e.g. button press event.|
|Screen Events||Events related to screens, e.g. onInit and onAfterShow.|
|Custom Events||Individual events within an application that can be published and subscribed at any time.|
|System Events||Events related to devices, e.g. onDeviceGoesOffline and onOrientationChange.|
Publish Custom Events
|If you want to make an event usable in other user stories, create a new Custom Event under the tab “Publish Event”.|
|A shortcut for creating Custom Events can be found in the top right-hand corner.|
Subscribe to Custom Events
You can subscribe to a custom event in another user story to connect the logic between different user stories.
You have a process in User Story 1 that contains a condition to check if an input field is filled out after clicking on a “Login” button. Afterwards, the user should be navigated forward to the next Screen.
Imagine you have the other user story exclusively for the whole navigation of your application. So you want the end of the event from User Story 1 (the navigation) subscribed to User Story 2.
Therefore we published the new Custom Event “LoginButton” in User Story 1 and subscribed to it in User Story 2.
|User Story 1|
|User Story 2|
Custom Events can be maintained in the Data Workbench.