Class ReceiveTaskStrategy
java.lang.Object
org.camunda.community.bpmndt.strategy.DefaultStrategy
org.camunda.community.bpmndt.strategy.DefaultHandlerStrategy
org.camunda.community.bpmndt.strategy.ReceiveTaskStrategy
- All Implemented Interfaces:
GeneratorStrategy
-
Field Summary
Fields inherited from class org.camunda.community.bpmndt.strategy.DefaultStrategy
activity, literal, multiInstanceParentFields inherited from interface org.camunda.community.bpmndt.GeneratorStrategy
CALL_ACTIVITY, EVENT, EXTERNAL_TASK, EXTERNAL_TASK_CLIENT, JOB, OTHER, RECEIVE_TASK, USER_TASK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.squareup.javapoet.TypeNameReturns the type name of the related handler orVoid, if the activity is not handled by a specific handler.voidinitHandler(com.squareup.javapoet.MethodSpec.Builder methodBuilder) Adds code, which initializes a handler field.com.squareup.javapoet.CodeBlockReturns the statement that initializes the handler.Methods inherited from class org.camunda.community.bpmndt.strategy.DefaultHandlerStrategy
addHandlerField, addHandlerMethod, applyHandler, buildHandlerMethodJavadoc, getHandlerMethods inherited from class org.camunda.community.bpmndt.strategy.DefaultStrategy
addHandlerFieldAfter, addHandlerFieldBefore, addHandlerMethodAfter, addHandlerMethodBefore, applyHandlerAfter, applyHandlerBefore, buildHandlerMethodName, equals, getActivity, getHandlerAfter, getHandlerBefore, getLiteral, getLiteralAfter, getLiteralBefore, hashCode, hasPassed, initHandlerAfter, initHandlerAfterStatement, initHandlerBefore, initHandlerBeforeStatement, isWaitingAt, setMultiInstanceParent, shouldHandleAfter, shouldHandleBefore
-
Constructor Details
-
ReceiveTaskStrategy
-
-
Method Details
-
getHandlerType
public com.squareup.javapoet.TypeName getHandlerType()Description copied from interface:GeneratorStrategyReturns the type name of the related handler orVoid, if the activity is not handled by a specific handler.- Specified by:
getHandlerTypein interfaceGeneratorStrategy- Overrides:
getHandlerTypein classDefaultStrategy- Returns:
- The handler type name e.g.
TypeName.get(UserTaskHandler.class).
-
initHandler
public void initHandler(com.squareup.javapoet.MethodSpec.Builder methodBuilder) Description copied from interface:GeneratorStrategyAdds code, which initializes a handler field.approveUserTask = new UserTaskHandler(getProcessEngine(), "approveUserTask");
- Specified by:
initHandlerin interfaceGeneratorStrategy- Overrides:
initHandlerin classDefaultHandlerStrategy- Parameters:
methodBuilder- The method builder to use.- See Also:
-
initHandlerStatement
public com.squareup.javapoet.CodeBlock initHandlerStatement()Description copied from interface:GeneratorStrategyReturns the statement that initializes the handler.new UserTaskHandler(getProcessEngine(), "approveUserTask");
- Specified by:
initHandlerStatementin interfaceGeneratorStrategy- Overrides:
initHandlerStatementin classDefaultHandlerStrategy- Returns:
- The code.
-