Package com.defaultcompany.external.service

Examples of com.defaultcompany.external.service.ProcessManagerService


    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


    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

    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.processStop(psMsg);
      pm.applyChanges();
     
      status = "S";
     
    } catch (Exception e) {
View Full Code Here

    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.activityComplete(acMsg);
      pm.applyChanges();
     
      if (StringUtils.hasText(acMsg.getInstanceId()) && StringUtils.hasText(acMsg.getEndpoint())) {
        taskInfoList = pms.getTaskInfo(acMsg.getInstanceId(), acMsg.getEndpoint());
      }
     
      status = "S";
     
    } catch (Exception e) {
View Full Code Here

    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.delegateWorkItem(dwMsg);
      pm.applyChanges();
     
      status = "S";
     
    } catch (Exception e) {
View Full Code Here

    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.approvalLineChange(alcMsg);
      pm.applyChanges();
     
      status = "S";
     
    } catch (Exception e) {
View Full Code Here

    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, request);
     
      if (StdMsgContext.CMD_PROCESS_START.equalsIgnoreCase(cmdBpm)) {
        ProcessStartMsg psMsg = stdMsgContext.bindProcessStartMsg(request);
        System.out.println(psMsg);
       
        String newInstanceId = pms.processStart(psMsg);
       
        returnEndpoint = psMsg.getInitiator();
        returnInstanceId = newInstanceId;

      } else if (StdMsgContext.CMD_ACTIVITY_COMPLETE.equalsIgnoreCase(cmdBpm)) {
        ActivityCompleteMsg acMsg = stdMsgContext.bindActivityCompleteMsg(request);
        System.out.println(acMsg);
       
        pms.activityComplete(acMsg);
       
        returnEndpoint = acMsg.getEndpoint();
        returnInstanceId = acMsg.getInstanceId();
       
      } else if (StdMsgContext.CMD_PROCESS_STOP.equalsIgnoreCase(cmdBpm)) {
        ProcessStopMsg psMsg = stdMsgContext.bindProcessStopMsg(request);
        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);
       
        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);
       
        pms.approvalLineChange(alcMsg);
     
      } else if (StdMsgContext.CMD_TASK_INFO.equalsIgnoreCase(cmdBpm)) {
        TaskInfoMsg tiMsg = stdMsgContext.bindTaskInfoMsg(request);
//        System.out.println(tiMsg);
       
        taskInfoList = pms.getTaskInfo(tiMsg);
       
      } else if (StdMsgContext.CMD_INITIALIZE_PROCESS_INSTANCE.equalsIgnoreCase(cmdBpm)) {
        InitializeProcessInstanceMsg ipiMsg = stdMsgContext.bindInitializeProcessInstanceMsg(request);
        System.out.println(ipiMsg);
       
        pms.initializeProcessInstance(ipiMsg);
       
      } else if (StdMsgContext.CMD_WORKITEM_ACCEPT.equalsIgnoreCase(cmdBpm)) {
        WorkItemAcceptMsg wiaMsg = stdMsgContext.bindWorkItemAcceptMsg(request);
        System.out.println(wiaMsg);
       
        pms.workItemAccept(wiaMsg);
       
      } else if (StdMsgContext.CMD_DELEGATE_WORKITEM.equalsIgnoreCase(cmdBpm)) {
        DelegateWorkItemMsg dwMsg = stdMsgContext.bindDelegateWorkItemMsg(request);
        System.out.println(dwMsg);
       
        pms.delegateWorkItem(dwMsg);
       
      }
     
      pm.applyChanges();
     
     
      if (!StdMsgContext.CMD_TASK_INFO.equalsIgnoreCase(cmdBpm) && StringUtils.hasText(returnInstanceId) && StringUtils.hasText(returnEndpoint)) {
        taskInfoList = pms.getTaskInfo(returnInstanceId, returnEndpoint);
      }
     
      String returnXmlMsg = makeReturnMsg("S", taskInfoList);
      System.out.println(returnXmlMsg);
     
View Full Code Here

    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.workItemAccept(wiaMsg);
      pm.applyChanges();
     
      status = "S";
     
    } catch (Exception e) {
View Full Code Here

    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      pms.initializeProcessInstance(ipiMsg);
      pm.applyChanges();
     
      status = "S";
     
    } catch (Exception e) {
View Full Code Here

    ProcessManagerFactoryBean pmfb = new ProcessManagerFactoryBean();
    ProcessManagerRemote pm = null;
    try {
      pm = pmfb.getProcessManager();
     
      ProcessManagerService pms = new ProcessManagerService(pm, null);
      String newInstanceId = pms.processStart(psMsg);
      pm.applyChanges();
     
      if (StringUtils.hasText(newInstanceId) && StringUtils.hasText(psMsg.getInitiator())) {
        taskInfoList = pms.getTaskInfo(newInstanceId, psMsg.getInitiator());
      }
     
      status = "S";
     
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of com.defaultcompany.external.service.ProcessManagerService

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.