Assign Service - bpml code

Mirjana's picture
There is an Assign Service that we can use for multiple assigns, that is always better solution than lot of Assign Elements.
You will be able to see Assign Service in service configurations, but not in Graphical Process Modeler.
It must be added manually into bpml code:
<process name="Assign_test_process">
          <operation name="AssignService">
                   <participant name="AssignService"/>
                   <output message="AssignOutputMessage">
                             <assign to="." from="*"/>
<!-- add constant value -->
<assign to="name1">value</assign>
<!-- add xpath value -->
<assign to="name2" from="pathToElement/text()"></assign>
                   <input message="AssignInputMessage">
                             <assign to="." from="*"/>