/** Test data */ public void test() { // Retrieve the MicroFlow String microFlowName = "SetCommentsAndCompleteTask"; IExecuteMicroflowRequest executeMicroflowRequest = getMicroflowRequest(microFlowName); // Payload ------------------------- // Service data // EQ_CMN_lp1EnterAnAccountLP1_SRV lp1ServiceData = new EQ_CMN_lp1EnterAnAccountLP1_SRV(); // lp1ServiceData.setAB_accountBranch("9132"); // lp1ServiceData.setAN_accountNumber("234567"); // lp1ServiceData.setAS_accountSuffix("001"); // Parameter EqMessage eqMessage = new EqMessage(); eqMessage.setFirstLevelText("TEST"); MessageStatus messageStatus = new MessageStatus(); messageStatus.setOverallStatus("F"); messageStatus.addEqMessages(eqMessage); TaskRsHeader output = new TaskRsHeader(); output.setFunctionMode("A"); output.setReason("Reason from SetCommentsAndCompleteTask"); output.setTaskAction("AUTH"); output.setReferToUserId("LIMA"); output.setMessages(messageStatus); // EQ_CMN_creditRiskManagementCRM_SRV crmData = null; // crmData = new EQ_CMN_creditRiskManagementCRM_SRV(); // crmData.setCURDATA_curdata("10"); // // EQ_CMN_enhancedFeesAndChargesAC2_SRV efcData = null; // efcData = new EQ_CMN_enhancedFeesAndChargesAC2_SRV(); // efcData.setADDS_adds("ADDS"); // efcData.setAREF_aref("AREF_aref"); // output.setServiceData(lp1ServiceData); // output.setCrmData(crmData); // output.setEfcData(efcData); Object payload = output; // Task details String taskId = getTaskId(); // Payload ------------------------- SetCommentsAndCompleteTaskBO workItem = new SetCommentsAndCompleteTaskBO(); workItem.setComments("comment from SetCommentAndComplete " + (new Date()).getTime()); workItem.setTkiid(taskId); workItem.setPayload(payload); // Set the parameters executeMicroflowRequest.addInputTag("setCommentsAndCompleteTaskBO", workItem); // Execute the MicroFlow IExecuteMicroflowResponse executeMicroflowResponse = executeMicroflow(executeMicroflowRequest); // Print details printWorkflowResponse(executeMicroflowResponse); // assume success assertEquals(true, true); }
/** Test data */ public void test() { // Retrieve the MicroFlow String microFlowName = "SetOutputMessage"; IExecuteMicroflowRequest executeMicroflowRequest = getMicroflowRequest(microFlowName); // Task details String taskId = getTaskId(); // Parameter MessageStatus messageStatus = new MessageStatus(); messageStatus.setOverallStatus("F"); Object dataType = null; EqMessage eqMessage = new EqMessage(); eqMessage.setFirstLevelText("TEST"); TaskRsHeader output = new TaskRsHeader(); output.setFunctionMode("A"); output.setReason("Reason12345"); output.setTaskAction("AUTH"); output.setReferToUserId("LIMA1235"); output.setMessages(messageStatus); output.setCrmData(eqMessage); output.setServiceData(messageStatus); dataType = output; CommentBO comment = new CommentBO(); comment.setComment("Test Comment"); // output.setServiceData(comment); // rqHeader.setServiceData(comment); // dataType = comment; // User user = new User(); // user.setUser("TestUser"); // output.setServiceData(user); // dataType = user; // EQ_CMN_lp1EnterAnAccountLP1_SRV lp1ServiceData = new EQ_CMN_lp1EnterAnAccountLP1_SRV(); // lp1ServiceData.setAB_accountBranch("9132"); // lp1ServiceData.setAN_accountNumber("234567"); // lp1ServiceData.setAS_accountSuffix("001"); // output.setServiceData(lp1ServiceData); // dataType = lp1ServiceData; OutputMessageBO outputMessage = new OutputMessageBO(); outputMessage.setTkiid(taskId); outputMessage.setAnyType(dataType); // Set the parameters executeMicroflowRequest.addInputTag("setOutputMessageBO", outputMessage); // Execute the MicroFlow IExecuteMicroflowResponse executeMicroflowResponse = executeMicroflow(executeMicroflowRequest); // Print details printworkflowResponse(executeMicroflowResponse); // assume success assertEquals(true, true); }