AnsweredAssumed Answered

Completion of java service task

Question asked by ldgiudice on Oct 3, 2016
I wrote a simple java class implementing ActivityBehavior and it simply logs some text

public class EventRecorderTaskBehavior implements ActivityBehavior {

    private Expression event;
    private Expression payload;

    public void execute(ActivityExecution execution) throws Exception {

        EventRecorder recorder = EventRecorder.getInstance();
        String topic = (String) event.getValue(execution);
        String payloadString = (String) payload.getValue(execution);

        System.out.println(String.format("Hello, the topic is: %s", topic));
        System.out.println(String.format("The payload is %s", payloadString));

    }
}

The issue is after this class is executed the process instance is stuck in the class, any clues why this is happening?

Outcomes