AnsweredAssumed Answered

Extended user task

Question asked by yahekia on Jul 17, 2014
Latest reply on Jul 22, 2014 by jbarrez
Hello,

I have searched in the forum how to add a custom task. All I have read about it, is that you can achieve it by implementing a custom ActivityBehavior.

So, as far as I understand this are the steps:

1) Create your own behaviour.

package org.acme.runtime.echo;

import org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior;
import org.activiti.engine.impl.task.TaskDefinition;

public class CustomUserTaskActivityBehaviour extends UserTaskActivityBehavior{

   public CustomUserTaskActivityBehaviour(TaskDefinition taskDefinition) {
      super(taskDefinition);
   }

   /**
    *
    */
   private static final long serialVersionUID = 4146135069535938135L;

}

2) Create a class that extends AbstractCustomServiceTask.


public class AcmeMoneyTask extends AbstractCustomServiceTask {
….
}

3) Set:

@Runtime(javaDelegateClass = " org.acme.runtime.echo.CustomUserTaskActivityBehaviour").


Is this the way???

Thank you.

Outcomes