LogStep - bluesoft-rnd/aperte-workflow-core GitHub Wiki
This step implementation is part of Log Step plugin. By invoking it one gets a chance to log a message into the Aperte Workflow logs. The message itself is also returned as step result.
Each message can be enriched with process instance attributes values by using the ${attributeKey}
syntax. If the attribute does not exist, the specific reference is not going to be resolved. However it's entirely up to process instance attribute to provide meaningful to string conversion.
Currently no Java Bean syntax is supported, so one can not access directly specific attribute properties.
Parameter name | Type | Required | Default value | Description |
---|---|---|---|---|
loggerLevel | String | False | INFO | Level of the logger to be used, as described by Java Util Logging. |
loggerName | String | False | org.aperteworkflow.plugin.ext.log.LogStep | Name of the logger to be used, as described tby the Java Util Logging |
message | String | required | - | The message content to be used. |
This examples shows how to log a message in log-user-step
that contains a process instance attribute available by key user
.
<java name="log-user-step"
class="pl.net.bluesoft.rnd.pt.ext.jbpm.JbpmStepAction"
g="460,25,100,80"
auto-wire="true"
cache="false"
method="invoke"
var="result">
<field name="stepName">
<string value="LogStep"/>
</field>
<field name="params">
<map>
<entry>
<key><string value="message"/></key>
<value><string value="The user is: ${user}"/></value>
</entry>
</map>
</field>
<transition g="" name="to end" to="end"></transition>
</java>