Examples of WfAssignment


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

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

        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

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

  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

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

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

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

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

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

        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

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

    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

Examples of org.enhydra.shark.api.client.wfmodel.WfAssignment

    /**
     * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
     */
    public int compare(Object obj1, Object obj2) {
        try {
            WfAssignment as1 = (WfAssignment) obj1;
            WfAssignment as2 = (WfAssignment) obj2;
            if (as1 == null && as2 != null) {
                return (order == ASCENDING_ORDER ? -1 : 1);
            }
            if (as2 == null && as1 != null) {
                return (order == ASCENDING_ORDER ? 1 : -1);
View Full Code Here

Examples of org.enhydra.shark.api.client.wfmodel.WfAssignment

    /**
     * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
     */
    public int compare(Object obj1, Object obj2) {
        try {
            WfAssignment as1 = (WfAssignment) obj1;
            WfAssignment as2 = (WfAssignment) obj2;
            if (as1 == null && as2 != null) {
                return (order == ASCENDING_ORDER ? -1 : 1);
            }
            if (as2 == null && as1 != null) {
                return (order == ASCENDING_ORDER ? 1 : -1);
View Full Code Here

Examples of org.ofbiz.workflow.WfAssignment

        WfResource resource = WfFactory.getWfResource(delegator, null, null, partyId, roleTypeId);

        if (!append) {
            Iterator<WfAssignment> i = activity.getIteratorAssignment();
            while (i.hasNext()) {
                WfAssignment a = i.next();
                a.remove();
            }
        }
        return WfFactory.getWfAssignment(activity, resource, fromDate, 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.