Examples of processes()


Examples of de.danet.an.workflow.api.ProcessDirectory.processes()

     * @throws Exception ...
     */
    public void cleanup () throws Exception {
 
  ProcessDirectory pd = workflowService().processDirectory ();
  for (Iterator i = pd.processes().iterator (); i.hasNext ();) {
      Process proc = (Process)i.next ();
      boolean done = false;
      for (int count = 5; count > 0; count--) {
    try {
        handleProcess (pd, proc);
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.processes()

                    fc.getApplication().getVariableResolver().resolveVariable
                    (fc, "processPortletEnv");
                Integer chunk = (Integer)
                    portletEnv.getPreferencesAsIntegers().get("displayedRows");
                processesAsModel = new PaginatedDataModel
                    (pd.processes(processFilter, sortCriterion),
                     chunk.intValue());
            } catch (RemoteException e) {
                JSFUtil.addMessage(FacesMessage.SEVERITY_ERROR, L10N_MSGS,
                                   "resourceCurrentlyUnavailable", null, e);
            } finally {
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.processes()

     */
    public void listProcessesInRange() throws Exception {
        ProcessDirectory pdir
            = WorkflowServiceFactory.newInstance()
            .newWorkflowService().processDirectory();
        List refList = (List)pdir.processes();
        Collections.sort(refList, new Comparator () {
            public int compare (Object obj1, Object obj2) {
                try {
                    return Integer.parseInt(((WfProcess)obj2).key())
                            - Integer.parseInt(((WfProcess)obj1).key());
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.processes()

        String o2 = p.key();
        iter.remove();
        FilterCriterion filter = new AndOperation
            (new NotOperation(new PropertyEquality("key", o1)),
             new NotOperation(new PropertyEquality("key", o2)));
        RangeAccess ra = pdir.processes(filter, new DescendingOrder("key"));
        List procs = ra.items(0, 10);
        Iterator i1 = refList.iterator();
        Iterator i2 = procs.iterator();
        for (int i = 0; i < 11; i++) {
            WfProcess p1 = (WfProcess)i1.next();
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.processes()

    public void listProcesses() throws Exception {
        ProcessDirectory pdir
            = WorkflowServiceFactory.newInstance()
            .newWorkflowService().processDirectory();
  Collection pts = pdir.processMgrNames ();
  Collection procs = pdir.processes();
    }

    /**
     * Returns a list of all defined process types
     * from the ProcessDirectory bean.
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.processes()

     * @exception Exception if an error occurs
     */
    public static void removeAllProcesses() throws Exception {
  // loop for all processes created
  ProcessDirectory pd = workflowService().processDirectory();
  Collection processes = pd.processes();
  for (Iterator it=processes.iterator(); it.hasNext();) {
      try {
    Process process = (Process)(it.next());
    pd.removeProcess(process);
      } catch (Exception e) {
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.processes()

     * @exception Exception if an error occurs
     */
    public static void closeAllCloseableProcesses() throws Exception {
  // loop for all processes created
  ProcessDirectory pd = workflowService().processDirectory();
  Collection processes = pd.processes();
  for (Iterator it=processes.iterator(); it.hasNext();) {
      Process process = (Process)(it.next());
      try {
    process.abort();
      } catch (Exception e) {
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessDirectory.processes()

  // loop for all processes created
  ProcessDirectory pd = workflowService().processDirectory();
  boolean runningProcesses = false;
  do {
      runningProcesses = false;
      Collection processes = pd.processes();
      for (Iterator it=processes.iterator();it.hasNext();) {
    try {
        Process process = (Process)(it.next());
        if (process.state().startsWith("open.running")) {
      runningProcesses = true;
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessMgr.processes()

  // Remove all old processes
  ProcessDefinitionDirectory procDefDir
      = workflowService().processDefinitionDirectory ();
  ProcessDirectory procDir = workflowService().processDirectory ();
  ProcessMgr pmgr = procDefDir.processMgr("ut-process", "dataItemLookup");
  Collection oldProcs = pmgr.processes();
  for (Iterator i = oldProcs.iterator(); i.hasNext ();) {
      procDir.removeProcess ((Process)i.next());
  }

  // Create some processes, first with null data item
View Full Code Here

Examples of de.danet.an.workflow.api.ProcessMgr.processes()

  assertTrue (c.size () == 1);
  c = toKeys (c);
  assertTrue (c.contains(procLong.key ()));

  // Cleanup
  oldProcs = pmgr.processes();
  for (Iterator i = oldProcs.iterator(); i.hasNext ();) {
      procDir.removeProcess ((Process)i.next());
  }
    }
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.