Examples of JbpmConfiguration


Examples of org.jbpm.JbpmConfiguration

        throw e;
     
        // get name of the process
      String nameProcess = processDefinition.getName();
      // get jbpm context
      JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
      jbpmContext = jbpmConfiguration.createJbpmContext();
      // deploy process  
      try{
        jbpmContext.deployProcessDefinition(processDefinition)
      } catch (Exception e) {
        executionMsg = msgBuilder.getMessage("dossier.workProcessStartError", "component_dossier_messages");
View Full Code Here

Examples of org.jbpm.JbpmConfiguration

    JbpmContext jbpmContext = null;
    try {
      // recover task instance and variables
      String activityKey = (String) request.getAttribute(SpagoBIConstants.ACTIVITYKEY);
      String approved = (String) request.getAttribute("approved");
      JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
      jbpmContext = jbpmConfiguration.createJbpmContext();
      TaskInstance taskInstance = jbpmContext.getTaskInstance(new Long(activityKey).longValue());
      contextInstance = taskInstance.getContextInstance();
      ProcessInstance processInstance = contextInstance.getProcessInstance();
      Long workflowProcessId = new Long(processInstance.getId());
      String dossierIdStr = (String) contextInstance.getVariable(DossierConstants.DOSSIER_ID);
View Full Code Here

Examples of org.jbpm.JbpmConfiguration

    JbpmContext jbpmContext = null;
    logger.debug("IN");
    try {
      // recover task instance and variables
      String activityKey = (String)request.getAttribute("activityKey");
      JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
      jbpmContext = jbpmConfiguration.createJbpmContext();
      TaskInstance taskInstance = jbpmContext.getTaskInstance(new Long(activityKey).longValue());
      String index = (String)taskInstance.getVariable(DossierConstants.DOSSIER_PART_INDEX);
      int pageNum = Integer.parseInt(index);
      ContextInstance contextInstance = taskInstance.getContextInstance();
      ProcessInstance processInstance = contextInstance.getProcessInstance();
View Full Code Here

Examples of org.jbpm.JbpmConfiguration

      int pageNum = Integer.parseInt(indexPart);
      String dossierIdStr = (String)request.getAttribute(DossierConstants.DOSSIER_ID);
      Integer dossierId = new Integer(dossierIdStr);
      String noteSent = (String)request.getAttribute("notes");
      String activityKey = (String)request.getAttribute(SpagoBIConstants.ACTIVITYKEY);
      JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
      jbpmContext = jbpmConfiguration.createJbpmContext();
      TaskInstance taskInstance = jbpmContext.getTaskInstance(new Long(activityKey).longValue());
      ContextInstance contextInstance = taskInstance.getContextInstance();
      ProcessInstance processInstance = contextInstance.getProcessInstance();
      Long workflowProcessId = new Long(processInstance.getId());
      SessionContainer session = this.getRequestContainer().getSessionContainer();
View Full Code Here

Examples of org.jbpm.JbpmConfiguration

         String activityKey = (String) serviceRequest.getAttribute(SpagoBIConstants.ACTIVITYKEY);
         JbpmContext jbpmContext = null;
         Integer dossierId = null;
         Long workflowProcessId = null;
         try {
           JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
                     jbpmContext = jbpmConfiguration.createJbpmContext();
           long activityKeyId = Long.valueOf(activityKey).longValue();
           TaskInstance taskInstance = jbpmContext.getTaskInstance(activityKeyId);
           ContextInstance contextInstance = taskInstance.getContextInstance();
           ProcessInstance processInstance = contextInstance.getProcessInstance();
           workflowProcessId = new Long(processInstance.getId());
View Full Code Here

Examples of org.jbpm.pvm.internal.cfg.JbpmConfiguration

  public Object parseDocument(Document document, Parse parse) {
    Element documentElement = document.getDocumentElement();
   
    // if the default environment factory was already set in the parse
    JbpmConfiguration jbpmConfiguration = (JbpmConfiguration) parse.findObject(JbpmConfiguration.class);
    if (jbpmConfiguration==null) {
      jbpmConfiguration = new JbpmConfiguration();
    }
   
    for (Element importElement : XmlUtil.elements(documentElement, "import")) {
      if (importElement.hasAttribute("resource")) {
        String resource = importElement.getAttribute("resource");
        Parse importParse = createParse()
          .setResource(resource)
          .pushObject(jbpmConfiguration)
          .execute();
       
        parse.addProblems(importParse.getProblems());
      }
    }

    Element processEngineElement = XmlUtil.element(documentElement, "process-engine-context");
    if (processEngineElement != null) {
      WireDefinition processEngineContextDefinition = jbpmConfiguration.getProcessEngineWireContext().getWireDefinition();
      parse.pushObject(processEngineContextDefinition);
      try {
        processEngineContextParser.parseDocumentElement(processEngineElement, parse);
      } finally {
        parse.popObject();
      }
    }

    Element txCtxElement = XmlUtil.element(documentElement, "transaction-context");
    if (txCtxElement != null) {
      WireDefinition transactionContextDefinition = jbpmConfiguration.getTransactionWireDefinition();
      parse.pushObject(transactionContextDefinition);
      try {
        transactionContextParser.parseDocumentElement(txCtxElement, parse);
      } finally {
        parse.popObject();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.