ActivitiRuntimeHelper { public String buildTaskWorkflowVariableName(String activitiId, String variableName) { return activitiId + TASK_VARIABLE_MARKER + variableName; }  void signal(String processInstanceId, String signalTaskId); void setTaskWorkflowVariable(String executionId, String activitiId, String variableName, Object variableValue); void setTaskWorkflowVariable(DelegateExecution execution, String variableName, Object variableValue); void setTaskSuccessInWorkflow(DelegateExecution execution); void setTaskErrorInWorkflow(DelegateExecution execution, String errorMessage, Exception exception); String buildTaskWorkflowVariableName(String activitiId, String variableName); static final String VARIABLE_STATUS; static final String VARIABLE_ERROR_MESSAGE; static final String TASK_STATUS_SUCCESS; static final String TASK_STATUS_ERROR; static final String TASK_VARIABLE_MARKER; }
@Test public void testBuildTaskWorkflowVariableName() { assertEquals(ACTIVITI_ID + ActivitiRuntimeHelper.TASK_VARIABLE_MARKER + VARIABLE_NAME, activitiRuntimeHelper.buildTaskWorkflowVariableName(ACTIVITI_ID, VARIABLE_NAME)); }