NEW1.06.07 · Released 27 March 2013
NEWfinPOWER Connect
Released in
1.06.07
27 March 2013
- Opened20 Feb
- Closed21 Feb
- Released27 Mar
Article 10936
Job J011148
Workflows; 'BeforeItemAction' Script event can now update the Outcome and StatusNotes for 'Question' and 'Test' type Workflow Item
The 'BeforeItemAction' Script event can now update the Outcome and StatusNotes for a 'Question' or 'Test' type Workflow Item.
'Test' type items can now also define outcomes other than 'True' and 'False'.
The following example updates the outcome from a 'Test' type item to 'X' and also updates the Status Notes to indicate that the Script has intervened:
Select Case eventIdCase "BeforeItemAction"Outcome = otherParameters.GetString("Outcome")StatusNotes = otherParameters.GetString("StatusNotes")If workflowItem.Description = "Test" AndAlso Outcome = "True" ThenotherParameters.SetString("Outcome", "X")otherParameters.SetString("StatusNotes", "Outcome updated to 'X' by Script.")End IfEnd Select
NOTE: Even though the event is names 'BeforeItemAction', any tests defined in a 'Test' type Workflow Item have already been performed and the outcome set to either 'True' or 'False'.