...
Code Block | ||
---|---|---|
| ||
$Xml.SetValue('CustomerCount', $Xml.EvaluateNumber('CustomerCount') + 1); if ( $Xml.EvaluateNumber('CustomerCount') < 10 ) { $WorkItem.SelectedAction = 'Continue'; } else { $WorkItem.SelectedAction = 'Completed'; } |
Start Point
Module Automation module type tasks can be set as start point to initiate workflow instances as automated way.
...
Scripting Initiate
You may call the WorkItem.Initiate method to initiate from other processes.
...