test_class.declarator: activitiRuntimeHelper
test_class.modifier: @InjectMocks
      private
test_class.original_string: @InjectMocks
      private ActivitiRuntimeHelper activitiRuntimeHelper;
test_class.type: ActivitiRuntimeHelper
test_class.var_name: activitiRuntimeHelper
test_class.declarator: runtimeService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private RuntimeService runtimeService;
test_class.type: RuntimeService
test_class.var_name: runtimeService
test_class.file: herd-code/herd-service/src/test/java/org/finra/herd/service/activiti/ActivitiRuntimeHelperTest.java
test_class.identifier: ActivitiRuntimeHelperTest
test_class.superclass: extends AbstractServiceTest
test_case.body: @Test
      public void testSignal()
      {
          // Create variables required for testing.
          final String processInstanceId = ACTIVITI_ID;
          final String signalTaskId = ACTIVITI_ID_2;
          final String executionId = ACTIVITI_ID_3;
  
          // Mock dependencies.
          ExecutionQuery executionQuery = mock(ExecutionQuery.class);
          Execution execution = mock(Execution.class);
          when(runtimeService.createExecutionQuery()).thenReturn(executionQuery);
          when(executionQuery.processInstanceId(processInstanceId)).thenReturn(executionQuery);
          when(executionQuery.activityId(signalTaskId)).thenReturn(executionQuery);
          when(executionQuery.singleResult()).thenReturn(execution);
          when(execution.getId()).thenReturn(executionId);
  
          // Call the method under test.
          activitiRuntimeHelper.signal(processInstanceId, signalTaskId);
  
          // Verify the calls.
          verify(runtimeService).createExecutionQuery();
          verify(executionQuery).processInstanceId(processInstanceId);
          verify(executionQuery).activityId(signalTaskId);
          verify(executionQuery).singleResult();
          verify(execution).getId();
          verify(runtimeService).signal(executionId);
          verifyNoMoreInteractions(executionQuery, execution, runtimeService);
      }
test_case.class_method_signature: ActivitiRuntimeHelperTest.testSignal()
test_case.full_signature: @Test public void testSignal()
test_case.identifier: testSignal
test_case.invocations: mock mock thenReturn when createExecutionQuery thenReturn when processInstanceId thenReturn when activityId thenReturn when singleResult thenReturn when getId signal createExecutionQuery verify processInstanceId verify activityId verify singleResult verify getId verify signal verify verifyNoMoreInteractions
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSignal()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(ActivitiRuntimeHelper.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(ActivitiRuntimeHelper.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: VARIABLE_STATUS = "taskStatus"
focal_class.modifier: public static final
focal_class.original_string: public static final String VARIABLE_STATUS = "taskStatus";
focal_class.type: String
focal_class.var_name: VARIABLE_STATUS
focal_class.declarator: VARIABLE_ERROR_MESSAGE = "taskErrorMessage"
focal_class.modifier: public static final
focal_class.original_string: public static final String VARIABLE_ERROR_MESSAGE = "taskErrorMessage";
focal_class.type: String
focal_class.var_name: VARIABLE_ERROR_MESSAGE
focal_class.declarator: TASK_STATUS_SUCCESS = "SUCCESS"
focal_class.modifier: public static final
focal_class.original_string: public static final String TASK_STATUS_SUCCESS = "SUCCESS";
focal_class.type: String
focal_class.var_name: TASK_STATUS_SUCCESS
focal_class.declarator: TASK_STATUS_ERROR = "ERROR"
focal_class.modifier: public static final
focal_class.original_string: public static final String TASK_STATUS_ERROR = "ERROR";
focal_class.type: String
focal_class.var_name: TASK_STATUS_ERROR
focal_class.declarator: TASK_VARIABLE_MARKER = "_"
focal_class.modifier: public static final
focal_class.original_string: public static final String TASK_VARIABLE_MARKER = "_";
focal_class.type: String
focal_class.var_name: TASK_VARIABLE_MARKER
focal_class.declarator: runtimeService
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private RuntimeService runtimeService;
focal_class.type: RuntimeService
focal_class.var_name: runtimeService
focal_class.file: herd-code/herd-service/src/main/java/org/finra/herd/service/activiti/ActivitiRuntimeHelper.java
focal_class.identifier: ActivitiRuntimeHelper
focal_class.class_method_signature: ActivitiRuntimeHelper.signal(String processInstanceId, String signalTaskId)
focal_class.full_signature: public void signal(String processInstanceId, String signalTaskId)
focal_class.identifier: signal
focal_class.modifiers: public
focal_class.parameters: (String processInstanceId, String signalTaskId)
focal_class.return: void
focal_class.signature: void signal(String processInstanceId, String signalTaskId)
focal_class.class_method_signature: ActivitiRuntimeHelper.setTaskWorkflowVariable(String executionId, String activitiId, String variableName, Object variableValue)
focal_class.full_signature: public void setTaskWorkflowVariable(String executionId, String activitiId, String variableName, Object variableValue)
focal_class.identifier: setTaskWorkflowVariable
focal_class.modifiers: public
focal_class.parameters: (String executionId, String activitiId, String variableName, Object variableValue)
focal_class.return: void
focal_class.signature: void setTaskWorkflowVariable(String executionId, String activitiId, String variableName, Object variableValue)
focal_class.class_method_signature: ActivitiRuntimeHelper.setTaskWorkflowVariable(DelegateExecution execution, String variableName, Object variableValue)
focal_class.full_signature: public void setTaskWorkflowVariable(DelegateExecution execution, String variableName, Object variableValue)
focal_class.identifier: setTaskWorkflowVariable
focal_class.modifiers: public
focal_class.parameters: (DelegateExecution execution, String variableName, Object variableValue)
focal_class.return: void
focal_class.signature: void setTaskWorkflowVariable(DelegateExecution execution, String variableName, Object variableValue)
focal_class.class_method_signature: ActivitiRuntimeHelper.setTaskSuccessInWorkflow(DelegateExecution execution)
focal_class.full_signature: public void setTaskSuccessInWorkflow(DelegateExecution execution)
focal_class.identifier: setTaskSuccessInWorkflow
focal_class.modifiers: public
focal_class.parameters: (DelegateExecution execution)
focal_class.return: void
focal_class.signature: void setTaskSuccessInWorkflow(DelegateExecution execution)
focal_class.class_method_signature: ActivitiRuntimeHelper.setTaskErrorInWorkflow(DelegateExecution execution, String errorMessage, Exception exception)
focal_class.full_signature: public void setTaskErrorInWorkflow(DelegateExecution execution, String errorMessage, Exception exception)
focal_class.identifier: setTaskErrorInWorkflow
focal_class.modifiers: public
focal_class.parameters: (DelegateExecution execution, String errorMessage, Exception exception)
focal_class.return: void
focal_class.signature: void setTaskErrorInWorkflow(DelegateExecution execution, String errorMessage, Exception exception)
focal_class.class_method_signature: ActivitiRuntimeHelper.buildTaskWorkflowVariableName(String activitiId, String variableName)
focal_class.full_signature: public String buildTaskWorkflowVariableName(String activitiId, String variableName)
focal_class.identifier: buildTaskWorkflowVariableName
focal_class.modifiers: public
focal_class.parameters: (String activitiId, String variableName)
focal_class.return: String
focal_class.signature: String buildTaskWorkflowVariableName(String activitiId, String variableName)
focal_method.body: public void signal(String processInstanceId, String signalTaskId)
      {
          ExecutionQuery signalTaskQuery = runtimeService.createExecutionQuery().processInstanceId(processInstanceId).activityId(signalTaskId);
          Execution execution = signalTaskQuery.singleResult();
          runtimeService.signal(execution.getId());
      }
focal_method.class_method_signature: ActivitiRuntimeHelper.signal(String processInstanceId, String signalTaskId)
focal_method.full_signature: public void signal(String processInstanceId, String signalTaskId)
focal_method.identifier: signal
focal_method.invocations: activityId processInstanceId createExecutionQuery singleResult signal getId
focal_method.modifiers: public
focal_method.parameters: (String processInstanceId, String signalTaskId)
focal_method.return: void
focal_method.signature: void signal(String processInstanceId, String signalTaskId)