To use a method inside a process do the following:
1. In the Collection Code section of the Object declare an enum type to be returned by the method.
Public Enum StepResult
Success
Fail
End Enum
2. Still in the Collection Code of the Object, add the method as a Function with a return type of that created in step 1. Give the Function an attribute of NxProcessMethod.
<NxProcessMethodAttribute()> _
Public Function DoWork() As StepResult
// Do some cool stuff...
Return StepResult.Done
End Function
3. After saving the object, the method should be available to add as a step in any Process based on the object.
No comments:
Post a Comment