Package de.danet.an.workflow.omgcore

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


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

  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

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

  }
  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

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