Search in sources :

Example 1 with ClassDelegate

use of org.activiti.engine.impl.bpmn.helper.ClassDelegate in project Activiti by Activiti.

the class TestActivityBehaviorFactory method createNoOpServiceTask.

private ClassDelegate createNoOpServiceTask(ServiceTask serviceTask) {
    List<FieldDeclaration> fieldDeclarations = new ArrayList<FieldDeclaration>();
    fieldDeclarations.add(new FieldDeclaration("name", Expression.class.getName(), new FixedValue(serviceTask.getImplementation())));
    return new ClassDelegate(NoOpServiceTask.class, fieldDeclarations);
}
Also used : ArrayList(java.util.ArrayList) FixedValue(org.activiti.engine.impl.el.FixedValue) ClassDelegate(org.activiti.engine.impl.bpmn.helper.ClassDelegate) FieldDeclaration(org.activiti.engine.impl.bpmn.parser.FieldDeclaration)

Aggregations

ArrayList (java.util.ArrayList)1 ClassDelegate (org.activiti.engine.impl.bpmn.helper.ClassDelegate)1 FieldDeclaration (org.activiti.engine.impl.bpmn.parser.FieldDeclaration)1 FixedValue (org.activiti.engine.impl.el.FixedValue)1