assertEquals(ACTIVITI_JOB_DELETE_REASON, deleteJobResponse.getDeleteReason());
theDeleteReason = this.getDeleteReason(); strategy.appendField(locator, this, "deleteReason", buffer, theDeleteReason, (this.deleteReason!= null));
theDeleteReason = this.getDeleteReason(); strategy.appendField(locator, this, "deleteReason", buffer, theDeleteReason, (this.deleteReason!= null));
lhsDeleteReason = this.getDeleteReason(); String rhsDeleteReason; rhsDeleteReason = that.getDeleteReason(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deleteReason", lhsDeleteReason), LocatorUtils.property(thatLocator, "deleteReason", rhsDeleteReason), lhsDeleteReason, rhsDeleteReason, (this.deleteReason!= null), (that.deleteReason!= null))) { return false;
theDeleteReason = this.getDeleteReason(); strategy.appendField(locator, this, "deleteReason", buffer, theDeleteReason, (this.deleteReason!= null));
lhsDeleteReason = this.getDeleteReason(); String rhsDeleteReason; rhsDeleteReason = that.getDeleteReason(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deleteReason", lhsDeleteReason), LocatorUtils.property(thatLocator, "deleteReason", rhsDeleteReason), lhsDeleteReason, rhsDeleteReason, (this.deleteReason!= null), (that.deleteReason!= null))) { return false;
lhsDeleteReason = this.getDeleteReason(); String rhsDeleteReason; rhsDeleteReason = that.getDeleteReason(); if (!strategy.equals(LocatorUtils.property(thisLocator, "deleteReason", lhsDeleteReason), LocatorUtils.property(thatLocator, "deleteReason", rhsDeleteReason), lhsDeleteReason, rhsDeleteReason, (this.deleteReason!= null), (that.deleteReason!= null))) { return false;
assertEquals(ACTIVITI_JOB_DELETE_REASON, deleteJobResponse.getDeleteReason());
theDeleteReason = this.getDeleteReason(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deleteReason", theDeleteReason), currentHashCode, theDeleteReason, (this.deleteReason!= null));
theDeleteReason = this.getDeleteReason(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deleteReason", theDeleteReason), currentHashCode, theDeleteReason, (this.deleteReason!= null));
theDeleteReason = this.getDeleteReason(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "deleteReason", theDeleteReason), currentHashCode, theDeleteReason, (this.deleteReason!= null));
/** * Asserts that the deleteJob call will move the job to completion, and add a record in the history instance with the specified delete reason. * * @throws Exception */ @Test public void testDeleteJob() throws Exception { // Start a job that will wait in a receive task jobDefinitionServiceTestHelper.createJobDefinition(ACTIVITI_XML_TEST_RECEIVE_TASK_WITH_CLASSPATH); Job job = jobService.createAndStartJob(jobServiceTestHelper.createJobCreateRequest(TEST_ACTIVITI_NAMESPACE_CD, TEST_ACTIVITI_JOB_NAME)); // Create a job delete request JobDeleteRequest jobDeleteRequest = new JobDeleteRequest(); jobDeleteRequest.setDeleteReason("test delete reason"); Job deleteJobResponse = jobService.deleteJob(job.getId(), jobDeleteRequest); // Assert delete job response assertEquals(job.getId(), deleteJobResponse.getId()); assertNull(deleteJobResponse.getNamespace()); assertNull(deleteJobResponse.getJobName()); assertEquals(JobStatusEnum.COMPLETED, deleteJobResponse.getStatus()); assertEquals(jobDeleteRequest.getDeleteReason(), deleteJobResponse.getDeleteReason()); // Assert historic process instance HistoricProcessInstance historicProcessInstance = activitiHistoryService.createHistoricProcessInstanceQuery().processInstanceId(job.getId()).singleResult(); assertNotNull(historicProcessInstance); assertEquals(jobDeleteRequest.getDeleteReason(), historicProcessInstance.getDeleteReason()); }
if (deleteReasonShouldBeCopiedAndSet == Boolean.TRUE) { String sourceDeleteReason; sourceDeleteReason = this.getDeleteReason(); String copyDeleteReason = ((String) strategy.copy(LocatorUtils.property(locator, "deleteReason", sourceDeleteReason), sourceDeleteReason, (this.deleteReason!= null))); copy.setDeleteReason(copyDeleteReason);
if (deleteReasonShouldBeCopiedAndSet == Boolean.TRUE) { String sourceDeleteReason; sourceDeleteReason = this.getDeleteReason(); String copyDeleteReason = ((String) strategy.copy(LocatorUtils.property(locator, "deleteReason", sourceDeleteReason), sourceDeleteReason, (this.deleteReason!= null))); copy.setDeleteReason(copyDeleteReason);
if (deleteReasonShouldBeCopiedAndSet == Boolean.TRUE) { String sourceDeleteReason; sourceDeleteReason = this.getDeleteReason(); String copyDeleteReason = ((String) strategy.copy(LocatorUtils.property(locator, "deleteReason", sourceDeleteReason), sourceDeleteReason, (this.deleteReason!= null))); copy.setDeleteReason(copyDeleteReason);