Package org.openbravo.scheduling

Examples of org.openbravo.scheduling.ProcessBundle


    final String windowId = vars.getStringParameter("inpwindowId");
    final String requestId = vars.getSessionValue(windowId + "|" + PROCESS_REQUEST_ID);

    String message = null;
    try {
      final ProcessBundle bundle = ProcessBundle.request(requestId, vars, this);
      OBScheduler.getInstance().schedule(requestId, bundle);

    } catch (final Exception e) {
      message = Utility.messageBD(this, "SCHED_ERROR", vars.getLanguage());
      advisePopUp(request, response, "ERROR", "Process Request", message + " " + e.getMessage());
View Full Code Here


PInstanceProcessData.insertPInstanceParam(this, pinstance, "10", "C_BP_Group_ID", strcBpGroupId, vars.getClient(), vars.getOrg(), vars.getUser());
String strcAcctschemaId = vars.getStringParameter("inpcAcctschemaId");
PInstanceProcessData.insertPInstanceParam(this, pinstance, "20", "C_AcctSchema_ID", strcAcctschemaId, vars.getClient(), vars.getOrg(), vars.getUser());

         
          ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
          new ProcessRunner(bundle).execute(this);
         
          PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
          myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
        } catch (ServletException ex) {
View Full Code Here

          PInstanceProcessData.insertPInstance(this, pinstance, "135", (("AD_ImpFormat_ID".equalsIgnoreCase("AD_Language"))?"0":strAD_ImpFormat_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
          String stradImpformatId = vars.getStringParameter("inpadImpformatId");
PInstanceProcessData.insertPInstanceParam(this, pinstance, "10", "AD_ImpFormat_ID", stradImpformatId, vars.getClient(), vars.getOrg(), vars.getUser());

         
          ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
          new ProcessRunner(bundle).execute(this);
         
          PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
          myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
        } catch (ServletException ex) {
View Full Code Here

        try {
          String pinstance = SequenceIdData.getUUID();
          PInstanceProcessData.insertPInstance(this, pinstance, "166", (("C_CommissionRun_ID".equalsIgnoreCase("AD_Language"))?"0":strC_CommissionRun_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
         
         
          ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
          new ProcessRunner(bundle).execute(this);
         
          PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
          myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
        } catch (ServletException ex) {
View Full Code Here

        PInstanceProcessData.insertPInstanceParam(this, adPinstanceId, "10", "AD_Table_ID",
            strTableId, vars.getClient(), vars.getOrg(), vars.getUser());
        PInstanceProcessData.insertPInstanceParam(this, adPinstanceId, "20", "AD_Org_ID", strOrgId,
            vars.getClient(), vars.getOrg(), vars.getUser());

        ProcessBundle bundle = new ProcessBundle(adProcessId, vars).init(this);
        bundle.getParams().put(ProcessBundle.PINSTANCE, adPinstanceId);
        String executionId = new ProcessRunner(bundle).execute(this);

        String log = CallAcctServerData.selectLog(this, executionId);
        myMessage.setMessage(Utility.parseTranslation(this, vars, vars.getLanguage(), log));
        myMessage.setType("Info");
View Full Code Here

          String pinstance = SequenceIdData.getUUID();
          PInstanceProcessData.insertPInstance(this, pinstance, "104", (("C_Order_ID".equalsIgnoreCase("AD_Language"))?"0":strC_Order_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
         
          HeaderData.updateDocAction(this, strdocaction, strC_Order_ID);

          ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
          new ProcessRunner(bundle).execute(this);
         
          PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
          myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
        } catch (ServletException ex) {
View Full Code Here

PInstanceProcessData.insertPInstanceParam(this, pinstance, "30", "regularization", strregularization, vars.getClient(), vars.getOrg(), vars.getUser());
String strabc = vars.getStringParameter("inpabc");
PInstanceProcessData.insertPInstanceParam(this, pinstance, "40", "ABC", strabc, vars.getClient(), vars.getOrg(), vars.getUser());

         
          ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
          new ProcessRunner(bundle).execute(this);
         
          PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
          myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
        } catch (ServletException ex) {
          myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
          if (!myMessage.isConnectionAvailable()) {
            bdErrorConnection(response);
            return;
          } else vars.setMessage(tabId, myMessage);
        }
        //close popup
        if (myMessage!=null) {
          if (log4j.isDebugEnabled()) log4j.debug(myMessage.getMessage());
          vars.setMessage(tabId, myMessage);
        }
        printPageClosePopUp(response, vars);
    } else if (vars.commandIn("SAVE_BUTTONUpdateQty106")) {
        String strM_Inventory_ID = vars.getGlobalVariable("inpKey", windowId + "|M_Inventory_ID", "");
        @SuppressWarnings("unused")
        String strupdateqty = vars.getStringParameter("inpupdateqty");
        String strProcessing = vars.getStringParameter("inpprocessing");
        OBError myMessage = null;
        try {
          String pinstance = SequenceIdData.getUUID();
          PInstanceProcessData.insertPInstance(this, pinstance, "106", (("M_Inventory_ID".equalsIgnoreCase("AD_Language"))?"0":strM_Inventory_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
         
         
          ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
          new ProcessRunner(bundle).execute(this);
         
          PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
          myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
        } catch (ServletException ex) {
          myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
          if (!myMessage.isConnectionAvailable()) {
            bdErrorConnection(response);
            return;
          } else vars.setMessage(tabId, myMessage);
        }
        //close popup
        if (myMessage!=null) {
          if (log4j.isDebugEnabled()) log4j.debug(myMessage.getMessage());
          vars.setMessage(tabId, myMessage);
        }
        printPageClosePopUp(response, vars);
    } else if (vars.commandIn("SAVE_BUTTONProcessing107")) {
        String strM_Inventory_ID = vars.getGlobalVariable("inpKey", windowId + "|M_Inventory_ID", "");
        @SuppressWarnings("unused")
        String strprocessing = vars.getStringParameter("inpprocessing");
        String strProcessing = vars.getStringParameter("inpprocessing");
        OBError myMessage = null;
        try {
          String pinstance = SequenceIdData.getUUID();
          PInstanceProcessData.insertPInstance(this, pinstance, "107", (("M_Inventory_ID".equalsIgnoreCase("AD_Language"))?"0":strM_Inventory_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
         
         
          ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
          new ProcessRunner(bundle).execute(this);
         
          PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
          myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
        } catch (ServletException ex) {
View Full Code Here

          String pinstance = SequenceIdData.getUUID();
          PInstanceProcessData.insertPInstance(this, pinstance, "111", (("C_Invoice_ID".equalsIgnoreCase("AD_Language"))?"0":strC_Invoice_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
         
          HeaderData.updateDocAction(this, strdocaction, strC_Invoice_ID);

          ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
          new ProcessRunner(bundle).execute(this);
         
          PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
          myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
        } catch (ServletException ex) {
View Full Code Here


    } else if (vars.commandIn("SAVE_BUTTONSession_Active9DB4D30BFC5144B9B431CB49DDE9270D")) {
        String strAD_Session_ID = vars.getGlobalVariable("inpKey", windowId + "|AD_Session_ID", "");
       
        ProcessBundle pb = new ProcessBundle("9DB4D30BFC5144B9B431CB49DDE9270D", vars).init(this);
        HashMap<String, Object> params= new HashMap<String, Object>();
      
        params.put("AD_Session_ID", strAD_Session_ID);
        params.put("adOrgId", vars.getStringParameter("inpadOrgId"));
        params.put("adClientId", vars.getStringParameter("inpadClientId"));
       
       
        pb.setParams(params);
        OBError myMessage = null;
        try {
          new ProcessRunner(pb).execute(this);
          myMessage = (OBError) pb.getResult();
          myMessage.setMessage(Utility.parseTranslation(this, vars, vars.getLanguage(), myMessage.getMessage()));
          myMessage.setTitle(Utility.parseTranslation(this, vars, vars.getLanguage(), myMessage.getTitle()));
        } catch (Exception ex) {
          myMessage = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
          log4j.error(ex);
View Full Code Here

        try {
          String pinstance = SequenceIdData.getUUID();
          PInstanceProcessData.insertPInstance(this, pinstance, "800106", (("M_Production_ID".equalsIgnoreCase("AD_Language"))?"0":strM_Production_ID), strProcessing, vars.getUser(), vars.getClient(), vars.getOrg());
         
         
          ProcessBundle bundle = ProcessBundle.pinstance(pinstance, vars, this);
          new ProcessRunner(bundle).execute(this);
         
          PInstanceProcessData[] pinstanceData = PInstanceProcessData.select(this, pinstance);
          myMessage = Utility.getProcessInstanceMessage(this, vars, pinstanceData);
        } catch (ServletException ex) {
View Full Code Here

TOP

Related Classes of org.openbravo.scheduling.ProcessBundle

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.