Examples of assignee()


Examples of de.danet.an.workflow.assignment.Assignment.assignee()

            maybeAddTextNode(description, val);
            Collection assignments = activity.assignments();
            Iterator assignmentIterator = assignments.iterator();
            while (assignmentIterator.hasNext()) {
                Assignment assignment = (Assignment) iterator.next();
                WfResource resource = assignment.assignee();
                SOAPElement assignee = activityNode.addChildElement("Assignee",
                        Consts.WFXML_PREFIX);
                val = resource.resourceName();
                if (val == null) {
                    assignee.addTextNode(resource.resourceKey());
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfAssignment.assignee()

        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.assignee()

  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.assignee()

  }
  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
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfAssignment.assignee()

  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();
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfAssignment.assignee()

  // 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()));
    }

    /**
     * Remove an assignment
View Full Code Here

Examples of de.danet.an.workflow.omgcore.WfAssignment.assignee()

  }
  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.assignee()

    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.assignee()

            sc = connect();

            WfAssignment wfa = getSharkAssignment(sc, activityId);
            if (wfa != null) {
                WfActivity activity = wfa.activity();
                WfResource assignee = wfa.assignee();
                WfProcess process = activity.container();
                WfProcessMgr manager = process.manager();
                ass = new WorkflowAssignment();
                ass.setAccepted(wfa.get_accepted_status());
                ass.setActivityId(activity.key());
View Full Code Here

Examples of org.enhydra.shark.api.client.wfmodel.WfAssignment.assignee()

                WfAssignment wfa = wItems[i];
                boolean acceptedStatus = wfa.get_accepted_status();
                WorkflowAssignment ass = new WorkflowAssignment();
                ass.setAccepted(acceptedStatus);
                WfActivity activity = wfa.activity();
                WfResource assignee = wfa.assignee();
                WfProcess process = activity.container();
                WfProcessMgr manager = process.manager();
                ass.setActivityId(activity.key());
                ass.setActivityName(activity.name());
                ass.setAssigneeId(assignee.resource_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.