Element - Raise Event
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 calculated field
Give the item a name and proceed to the next screen.
We can now configure the following
- Event Type - Select the event type to raise if this item type evaluate to true (e.g. High Oven Temperature)
- Active Item Expression - Enter a calculation which when true will cause the event to be raised (e.g. TemperatureCheck > 220)
- 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.