Examples of processDefinition()


Examples of de.danet.an.workflow.api.Process.processDefinition()

      } catch (Exception ex) {
    gotEx = true;
      }
      assertTrue(gotEx);
      // check the process definition of the process
      ProcessDefinition procDef = process.processDefinition();
      assertTrue(procDef.packageId().equals("ut-process"));
      assertTrue(procDef.processId().equals("jut1"));
      // import the process definition again.
      importProcessDefinitions();
      pd = pdd.lookupProcessDefinition("ut-process", "jut1");
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processDefinition()

     */
    public void checkFormalParams() throws Exception {
  WfRequester cont = new DefaultRequester(workflowService());
  Process process = (Process)createProcess
      ("subflowtest", "called1", cont);
  FormalParameter[] fps = process.processDefinition().formalParameters();
  assertTrue(fps.length == 2);
  assertTrue(fps[0].id().equals ("testData"));
  assertTrue(fps[1].id().equals ("status"));
    }

View Full Code Here

Examples of de.danet.an.workflow.api.Process.processDefinition()

      } catch (Exception ex) {
    gotEx = true;
      }
      assertTrue(gotEx);
      // check the process definition of the process
      ProcessDefinition procDef = process.processDefinition();
      assertTrue(procDef.packageId().equals("ut-process"));
      assertTrue(procDef.processId().equals("jut1"));
      // import the process definition again.
      importProcessDefinitions();
      pd = pdd.lookupProcessDefinition("ut-process", "jut1");
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processDefinition()

      } catch (Exception ex) {
    gotEx = true;
      }
      assertTrue(gotEx);
      // check the process definition of the process
      ProcessDefinition procDef = process.processDefinition();
      assertTrue(procDef.packageId().equals("N1"));
      assertTrue(procDef.processId().equals("N2"));
      // import the process definition again.
      importProcessDefinitions();
      pd = pdd.lookupProcessDefinition("N1", "N2");
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processDefinition()

      if (processKey == null) {
    pdd = pddHome.create();
    return pdd.lookupProcessDefinition(packageId, processId);
      } else {
    Process proc = processHome.findByProcessKey(processKey);
    return proc.processDefinition();
      }
  } catch (InvalidKeyException ivke) {
      throw new IllegalStateException
    ("Key " + packageId + "/" + processId + " is invalid: "
     + ivke.getMessage());
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processDefinition()

      } catch (Exception ex) {
    gotEx = true;
      }
      assertTrue(gotEx);
      // check the process definition of the process
      ProcessDefinition procDef = process.processDefinition();
      assertTrue(procDef.packageId().equals("N1"));
      assertTrue(procDef.processId().equals("N2"));
      // import the process definition again.
      importProcessDefinitions();
      pd = pdd.lookupProcessDefinition("N1", "N2");
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processDefinition()

            proc.setDescription(description);
        }
       
        SOAPElement data = findChildNode(action, "Data");
        if (data != null) {
            ProcessDefinition procdef = proc.processDefinition();
            ProcessData procData;
            try {
                procData = getProcessData(procdef, data);
                proc.setProcessContext(procData);
            } catch (ParseException e) {
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processDefinition()

            FaultUtils.setFault(respMsg, ASAPException.ASAP_ELEMENT_MISSING,
                    "Missing observer key!");
            return;
        }

        ProcessDefinition procdef = proc.processDefinition();
        try {
            ObserverRegistry obs = getObserverRegistry();
            obs.subscribe
                (observer, procdef.packageId(),
                 procdef.processId(), proc.key(),
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processDefinition()

                    "Missing observer key!");
           
            return;
        }

        ProcessDefinition procdef = proc.processDefinition();
        try {
            ObserverRegistry obs = getObserverRegistry();
            obs.unsubscribe(observer, procdef.packageId(), procdef.processId(),
                    proc.key());
        } catch (SQLException e) {
View Full Code Here

Examples of de.danet.an.workflow.api.Process.processDefinition()

            throw new IllegalArgumentException();
        }
        this.baseUrl = baseUrl;
        this.resource = AbstractResponseGenerator.RESOURCE_ACTIVITY;
        Process process = (Process)activity.container();
        ProcessDefinition procDef = process.processDefinition();
        this.packageId = procDef.packageId();
        this.processId = procDef.processId();
        this.processKey = process.key();
        this.activityKey = activity.key();
    }
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.