Article Details
| Id: | 10936 |
| Product: | finPOWER Connect |
| Type: | NEW |
| Version: | 1.06.07 |
| Opened: | 20/02/2013 |
| Closed: | 21/02/2013 |
| Released: | 27/03/2013 |
| 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'.