cancel
Showing results for 
Search instead for 
Did you mean: 

tracing process execution

mhw
Champ in-the-making
Champ in-the-making
Hi,

I am searching for a possibility to trace the execution of processes. We have a proprietary xml-format which is xslt-converted to bpmn20 and then executed. The designers of the process are no programmers. Our design tools is based on eclipse emf. So my idea is to implement some debugging trace to send it to the eclipse tooling for highlighting the nodes in the process and "stepping" forward.

I tried the following:

<sequenceFlow id="flow__hwLePislEd6JArVhar3Org" sourceRef="_hwLePislEd6JArVhar3Org" targetRef="_hwLeQCslEd6JArVhar3Org">
   <extensionElements>
        <activiti:field name="source">
                TEST
   </activiti:field>
          <activiti:executionListener class="com.bigcompany.wfe.activiti.listener.SequenceFlowListener"/>
    </extensionElements>
</sequenceFlow>
public class SequenceFlowListener implements ExecutionListener {

   private String source;
   
   @Override
   public void notify(DelegateExecution execution) throws Exception {
      System.out.println("source: " + execution.getVariable("source") + source);
      System.out.println("destination: " + execution.getVariable("destination"));
   }

}

Can anybody please enlighten me why this is not working? Any other ideas?

Best regards

Michael
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

The field extensions should be child elements of the execution listener element.

Best regards,

mhw
Champ in-the-making
Champ in-the-making
Thank you! Works like a charm. Correct for field injection is of course:
private FixedValue source;in the delegate class.
BRM