DescriptionUse this task to add custom values to the process map. This works with primitive types like long values as well as more complex types like Strings or Dates. If one of the keys already exists in the process map, the value will be overwritten. Bean configuration in custom-beans.propertiesThe example contains several possibilities to declare the key/value pairs. The simplest way is to use plain key/value pairs as strings. You also have the possibility to refer to constants within a Java class. Code Block |
---|
| <bean id="addMyValuesToProcessMapTask" class="de.vps.act.processexecution.delegation.ActionBasedJavaDelegate">
<property name="action">
<bean class="de.nexus.projectutils.action.AddValuesToProcessMapAction">
<property name="values">
<map>
<!-- Default key-value-entry -->
<entry key="BaseDpEmployee_FirstName" value="Martin" />
<!-- Key as Enum (used by config_util) -->
<entry key="#{T(de.nexus.config.enums.BaseDpEmployeeEnum).FIRSTNAME.fullName}" value="Martin" />
<!-- Value as expression -->
<entry key="BaseDpEmployee_Option" value="#{T(java.lang.Boolean).TRUE}"/>
<!-- Key and Value as constants -->
<entry>
<key><util:constant static-field="de.vps.act.processexecution.multiprocessing.MultiProcessingConstants.CANCEL_CALLED"/></key>
<util:constant static-field="java.lang.Boolean.TRUE"/>
</entry>
<!-- Key as expression and Value as typed value -->
<entry>
<key><util:constant static-field="de.vps.act.processexecution.multiprocessing.MultiProcessingConstants.CANCEL_CALLED"/></key>
<value type="java.lang.Boolean">true</value>
</entry>
</map>
</property>
</bean>
</property>
</bean> |
Configuration of Service TaskTo use this task set the delegate expression in your service task to the following value:
Code Block |
---|
${addMyValuesToProcessMapTask} |
|