Raise event
Last updated
Last updated
Activities by default will generate events on submission such as Activity Manual Start, Activity Failed, Activity Expired etc.
However, sometimes a specific workflow needs to occur based on a value contained inside of an activity. For Example, when Oven Temperature is too high, raise the High Oven Temperature event, which will trigger the appropriate activities.
Start by creating a new Activity Item with Item Type of Raise Event.
You can then choose any of the following data types. For this example we will use the Pass/Fail field, which is our recommendation to start with.
Give the item a name and proceed to the next screen.
We can now configure the following:
Field | Description |
---|---|
Event Type | Select the event type to raise if this item type evaluate to true (e.g. High Oven Temperature) |
Active Item Expression (optional) | Enter a calculation which when true will cause the event to be raised (e.g. TemperatureCheck > 220). This is useful if you want to automate the event getting raised or not. By using a Pass/Fail the event will be raised in case you select Pass. |
Hidden Expression | Enter an expression that when true will not show this field on the activity form. |
Save this item type and you can now test the activity. Check that when Active Item Expression is false, no event is raised on activity submit. When Active Item Expression is true, the event type specific is created.