Package de.danet.an.workflow.omgcore

Examples of de.danet.an.workflow.omgcore.WfAssignment


                        WorkflowService wfs = wsc.getWorkflowService();
                        WfResource resource
                            = wfs.resourceByKey(selectedResourceKey);
                        Collection assignments = resource.workItems();
                        for (Iterator i = assignments.iterator(); i.hasNext ();) {
                            WfAssignment assignment = (WfAssignment)i.next();
                            assignedActivitiesList.add
                                (new ActivityWrapper
                                 (wfs, (Activity)assignment.activity()));
                        }
                    } catch (RemoteException e) {
                        JSFUtil.addMessage(FacesMessage.SEVERITY_ERROR, L10N_MSGS,
                                           "resourceCurrentlyUnavailable", null, e);
                    } catch (InvalidKeyException e) {
View Full Code Here


        uniqueDispKey = info.uniqueKey().managerName() + "/" + info.name();
        state = mir.resultAsString(1);
        Collection assignments = (Collection)mir.result(2);
        assignees = new ArrayList ();
        for (Iterator i = assignments.iterator(); i.hasNext ();) {
            WfAssignment a = (WfAssignment)i.next();
            assignees.add (new ResourceWrapper(a.assignee()));
        }
        Activity.Implementation executing
            = (Activity.Implementation)mir.result(3);
        if (executing == null) {
            executor = null;
View Full Code Here

  throws Exception {
  boolean found = false;
  WfResource resource = ras.resourceByKey(key);
  Collection assignedActivities = ras.workItems(resource);
  for (Iterator i = assignedActivities.iterator(); i.hasNext();) {
      WfAssignment assignment = (WfAssignment)i.next();
      WfActivity act = assignment.activity();
      if (testProc.key().equals(act.container().key())) {
    found = true;
    assertTrue(assignment.assignee().resourceName()
         .equals(name));
    break;
      }
  }
  return found;
View Full Code Here

      }
  }
  assertTrue (act.name().equals ("RAS Test A1"));
  // assign
  Collection assmnts = act.assignments ();
  WfAssignment amnt = (WfAssignment)assmnts.iterator().next ();
  assertTrue (resMLipp.resourceKey (), amnt.assignee().resourceKey()
        .equals (resMLipp.resourceKey()));
  amnt.setAssignee (resOP);
  assertTrue (amnt.assignee().resourceKey()
        .equals (resOP.resourceKey()));
  // re-get assignment to make sure
  assmnts = act.assignments ();
  assertTrue (assmnts.size() == 1);
  Iterator i = assmnts.iterator();
  WfAssignment assmnt = (WfAssignment)i.next();
  assertTrue (assmnt.assignee().resourceKey()
        .equals (resOP.resourceKey()));
    }
View Full Code Here

      }
  }
  assertTrue (act.name().equals ("RAS Test A1"));
  // release
  Collection assmnts = act.assignments ();
  WfAssignment amnt = (WfAssignment)assmnts.iterator().next ();
  amnt.assignee().release (amnt, "");
  assmnts = act.assignments ();
  assertTrue (assmnts.size() == 0);
  // check events
  Thread.sleep (500);
  boolean noneToJ = false;
View Full Code Here

        RASInvocationHandler ras = rasInvocationHandler();
  if (ras == null) {
      return;
  }
  for (Iterator i = assignments().iterator(); i.hasNext ();) {
      WfAssignment assignment = (WfAssignment)i.next ();
            try {
                WfResource resource = ras.retrieveAssignee(assignment);
                ras.removeAssignment
                    (activityFinder(), getPaKey(), toActivity(), resource);
                if (getPaAuditEventSelection()
View Full Code Here

    prepStmt.setString (offset++, auk.managerName());
    if (saveAssignment) {
        String resourceKey = null;
        Iterator i = activity.assignments().iterator();
        if (i.hasNext ()) {
      WfAssignment assignment = (WfAssignment)i.next();
      resourceKey = assignment.assignee().resourceKey();
        }
        prepStmt.setString (offset++, resourceKey);
    }
    prepStmt.setTimestamp
        (offset++, new Timestamp (System.currentTimeMillis()));
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.omgcore.WfAssignment

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.