Package com.defaultcompany.external.model.stdmsg

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


   
    return aacMsg;
  }
 
  public ApprovalDraftActivityCompleteMsg bindApprovalDraftMsg(HttpServletRequest request) {
    ApprovalDraftActivityCompleteMsg adacMsg = new ApprovalDraftActivityCompleteMsg();
   
    this.bindCommon(request, adacMsg);
 
    adacMsg.setInstanceId(ServletRequestUtils.getStringParameter(request, "instanceId", null));
    adacMsg.setTaskId(ServletRequestUtils.getStringParameter(request, "taskId", null));
    adacMsg.setTracingTag(ServletRequestUtils.getStringParameter(request, "tracingTag", null));
    adacMsg.setEndpoint(ServletRequestUtils.getStringParameter(request, "endpoint", null));
    adacMsg.setApprovalKey(ServletRequestUtils.getStringParameter(request, "approvalKey", null));
    adacMsg.setMainParam(ServletRequestUtils.getStringParameter(request, "mainParam", null));
    adacMsg.setSubParam(ServletRequestUtils.getStringParameter(request, "subParam", null));
    adacMsg.setComment(ServletRequestUtils.getStringParameter(request, "comment", null));
   
    return adacMsg;
  }
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);

    ApprovalDraftActivityCompleteMsg adacMsg = new ApprovalDraftActivityCompleteMsg();
   
    adacMsg.setExternalKey(commonElement.getChildText("externalKey", WORKFLOW_NAMESPACE));
    adacMsg.setProcessVariablesByElementList(commonElement.getChildren("processVariable", WORKFLOW_NAMESPACE));
    adacMsg.setRolesByElementList(commonElement.getChildren("role", WORKFLOW_NAMESPACE));
   
    adacMsg.setEndpoint(activityCompleteElement.getChildText("endpoint", WORKFLOW_NAMESPACE));
    adacMsg.setInstanceId(activityCompleteElement.getChildText("instanceId", WORKFLOW_NAMESPACE));
    adacMsg.setTaskId(activityCompleteElement.getChildText("taskId", WORKFLOW_NAMESPACE));
    adacMsg.setTracingTag(activityCompleteElement.getChildText("tracingTag", WORKFLOW_NAMESPACE));
   
    adacMsg.setApprovalKey(commonElement.getChildText("approvalKey", WORKFLOW_NAMESPACE));
    adacMsg.setComment(commonElement.getChildText("comment", WORKFLOW_NAMESPACE));
    adacMsg.setMainParam(commonElement.getChildText("mainParam", WORKFLOW_NAMESPACE));
    adacMsg.setSubParam(commonElement.getChildText("subParam", WORKFLOW_NAMESPACE));
   
    System.out.println(adacMsg);
   
    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.approvalDraftActivityComplete(adacMsg);
      pm.applyChanges();
     
      if (StringUtils.hasText(adacMsg.getInstanceId()) && StringUtils.hasText(adacMsg.getEndpoint())) {
        taskInfoList = pms.getTaskInfo(adacMsg.getInstanceId(), adacMsg.getEndpoint());
      }
     
      status = "S";
     
    } catch (Exception e) {
View Full Code Here

        System.out.println(psMsg);
       
        pms.processStop(psMsg);
       
      } else if (StdMsgContext.CMD_APPROVAL_DRAFT.equalsIgnoreCase(cmdBpm)) {
        ApprovalDraftActivityCompleteMsg adacMsg = stdMsgContext.bindApprovalDraftMsg(request);
       
        System.out.println(adacMsg);
        pms.approvalDraftActivityComplete(adacMsg);
       
        returnEndpoint = adacMsg.getEndpoint();
        returnInstanceId = adacMsg.getInstanceId();
       
      } else if (StdMsgContext.CMD_APPROVAL_COMPLETE.equalsIgnoreCase(cmdBpm)) {
        ApprovalActivityCompleteMsg aacMsg = stdMsgContext.bindApprovalActivityCompleteMsg(request);
        System.out.println(aacMsg);
       
View Full Code Here

TOP

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

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.