Package com.defaultcompany.external.model.stdmsg

Examples of com.defaultcompany.external.model.stdmsg.ApprovalActivityCompleteMsg


   
    return taskInfoMsg;
  }
 
  public ApprovalActivityCompleteMsg bindApprovalActivityCompleteMsg(HttpServletRequest request) {
    ApprovalActivityCompleteMsg aacMsg = new ApprovalActivityCompleteMsg();
   
    this.bindCommon(request, aacMsg);
   
    aacMsg.setInstanceId(ServletRequestUtils.getStringParameter(request, "instanceId", null));
    aacMsg.setTaskId(ServletRequestUtils.getStringParameter(request, "taskId", null));
    aacMsg.setTracingTag(ServletRequestUtils.getStringParameter(request, "tracingTag", null));
    aacMsg.setEndpoint(ServletRequestUtils.getStringParameter(request, "endpoint", null));
   
    aacMsg.setApprovalKey(ServletRequestUtils.getStringParameter(request, "approvalKey", null));
    aacMsg.setApprovalStatus(ServletRequestUtils.getStringParameter(request, "approvalStatus", null));
    aacMsg.setComment(ServletRequestUtils.getStringParameter(request, "comment", null));
   
    return aacMsg;
  }
View Full Code Here


       
        returnEndpoint = adacMsg.getEndpoint();
        returnInstanceId = adacMsg.getInstanceId();
       
      } else if (StdMsgContext.CMD_APPROVAL_COMPLETE.equalsIgnoreCase(cmdBpm)) {
        ApprovalActivityCompleteMsg aacMsg = stdMsgContext.bindApprovalActivityCompleteMsg(request);
        System.out.println(aacMsg);
       
        pms.approvalActivityComplete(aacMsg);
       
        returnEndpoint = aacMsg.getEndpoint();
        returnInstanceId = aacMsg.getInstanceId();

      } else if (StdMsgContext.CMD_APPROVAL_LINE_CHANGE.equalsIgnoreCase(cmdBpm))  {
        ApprovalLineChangeMsg alcMsg = stdMsgContext.bindApprovalLineChangeMsg(request);
        System.out.println(alcMsg);
       
View Full Code Here

  @Override
  protected Element invokeInternal(Element requestElement) throws Exception {
    Element commonElement = requestElement.getChild("common", WORKFLOW_NAMESPACE);
    Element activityCompleteElement = requestElement.getChild("activityComplete", WORKFLOW_NAMESPACE);

    ApprovalActivityCompleteMsg aacMsg = new ApprovalActivityCompleteMsg();
    aacMsg.setExternalKey(commonElement.getChildText("externalKey", WORKFLOW_NAMESPACE));
    aacMsg.setProcessVariablesByElementList(commonElement.getChildren("processVariable", WORKFLOW_NAMESPACE));
    aacMsg.setRolesByElementList(commonElement.getChildren("role", WORKFLOW_NAMESPACE));
   
    aacMsg.setEndpoint(activityCompleteElement.getChildText("endpoint", WORKFLOW_NAMESPACE));
    aacMsg.setInstanceId(activityCompleteElement.getChildText("instanceId", WORKFLOW_NAMESPACE));
    aacMsg.setTaskId(activityCompleteElement.getChildText("taskId", WORKFLOW_NAMESPACE));
    aacMsg.setTracingTag(activityCompleteElement.getChildText("tracingTag", WORKFLOW_NAMESPACE));
   
    aacMsg.setApprovalKey(requestElement.getChildText("approvalKey", WORKFLOW_NAMESPACE));
    aacMsg.setApprovalStatus(requestElement.getChildText("approvalStatus", WORKFLOW_NAMESPACE));
    aacMsg.setComment(requestElement.getChildText("comment", WORKFLOW_NAMESPACE));
   
   
    System.out.println(aacMsg);
   
    String status = null;
    List<TaskInfo> taskInfoList = null;
   
    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.approvalActivityComplete(aacMsg);
      pm.applyChanges();
     
      if (StringUtils.hasText(aacMsg.getInstanceId()) && StringUtils.hasText(aacMsg.getEndpoint())) {
        taskInfoList = pms.getTaskInfo(aacMsg.getInstanceId(), aacMsg.getEndpoint());
      }
     
      status = "S";
     
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.defaultcompany.external.model.stdmsg.ApprovalActivityCompleteMsg

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.