Come for answers, stay for best practices. All we're missing is you.
Normally, you would write a BP like this to do a 5 second sleep:
<process name="vmt_sleep"> <sequence name="sleep5"> <operation name="one"> <participant name="SleepService"/> <output message="Xout"> <assign to="SLEEP_INTERVAL">5</assign> </output> <input message="Xin"> </input> </operation> </sequence> </process>
which would produce this execution result:
If you wanted to dynamically set the name of the service to execute, you could write the BP like this:
<process name="vmt_sleep"> <sequence name="sleep5"> <assign to="SVC_NAME">SleepService</assign> <assign to="SLEEP_INTERVAL">5</assign> <operation> <participant name="DynamicServiceInvokerService"/> <output message="Xout"> <assign to="." from="*"></assign> </output> <input message="Xin" /> </operation> <assign to="COMPLETE">true</assign> </sequence> </process>
which would produce this execution result.
Copy