Package de.danet.an.workflow.api

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


                    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

     */
    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

        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

    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

     * @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

     * @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

  // 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

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.