Package de.danet.an.workflow.omgcore

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


    /**
     * Lookup by data.
     */
    public void lookupByData () throws Exception {
  WfRequester req = new DefaultRequester(workflowService());

  // Remove all old processes
  ProcessDefinitionDirectory procDefDir
      = workflowService().processDefinitionDirectory ();
  ProcessDirectory procDir = workflowService().processDirectory ();
View Full Code Here


  }
  pdd.importProcessDefinitions(sb.toString());
    }

    public void runTest () throws Exception {
        WfRequester req = new DefaultRequester (workflowService());
  WfProcess process = createProcess
      ("testByAudit2", "testByAudit_emptySeq_na", req);
  assertTrue(process!=null);
  process.start ();
  assertTrue (stateReached (process, "closed"));
View Full Code Here

    /**
     * Returns the requester for this process. Method of the omg interface.
     * @return requester for this process.
     */
    public WfRequester requester() {
  WfRequester req = getPaRequester();
        if (req instanceof SubProcRequester) {
            try {
                return lookupActivityLocal
                    (((SubProcRequester)req).requestingActivity()).toActivity();
            } catch (InvalidKeyException e) {
View Full Code Here

    /**
     * Handles a terminated audit event.
     * @param event the event.
     */
    protected void handleTerminatedEvent (WfStateAuditEvent event) {
  WfRequester req = unresolvedRequester();
  if ((req instanceof SubProcRequester)
      && (((SubProcRequester)req).execution()
    == SubFlowImplementation.SYNCHR)) {
      String key = ((SubProcRequester)req).requestingActivity();
      try {
View Full Code Here

    /**
     * Handles a aborting audit event.
     * @param event the event.
     */
    protected void handleAbortedEvent (WfStateAuditEvent event) {
  WfRequester req = unresolvedRequester();
  if ((req instanceof SubProcRequester)
      && (((SubProcRequester)req).execution()
    == SubFlowImplementation.SYNCHR)) {
      String key = ((SubProcRequester)req).requestingActivity();
      try {
View Full Code Here

    /**
     * Handles a completed audit event.
     * @param event the event.
     */
    protected void handleCompletedEvent (WfStateAuditEvent event) {
  WfRequester req = unresolvedRequester();
  if ((req instanceof SubProcRequester)
      && (((SubProcRequester)req).execution()
    == SubFlowImplementation.SYNCHR)) {
      String key = ((SubProcRequester)req).requestingActivity();
      try {
View Full Code Here

      try {
    ExtProcessLocal process = (ExtProcessLocal)act.containerLocal();
    ProcessDefinitionDirectoryLocal pdd
        = (ProcessDefinitionDirectoryLocal)
        process.processDefinitionDirectoryLocal ();
    WfRequester req = new SubProcRequester (act, execMode);
    ProcessData pd = new DefaultProcessData
        (parameterMap (process, act, pdd));   
    WfProcessLocal p
                    = pdd.createProcessLocal (packageId(), processId(), req);
    p.setProcessContext(pd);
View Full Code Here

TOP

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

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.