Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.MethodInvocationBatch.addInvocation()


        MethodInvocationBatch mib = new MethodInvocationBatch(true);
        if (dl == null
                || (dl.getExecutionMode() == Activity.DeadlineInfo.SYNCHR)) {
            // not an asynchronous deadline, abandon if not aborted
            if (!state.startsWith("open.running.debug.abandoning")) {
                mib.addInvocation(activity, "abandon",
                        new String[] { "java.lang.String" },
                        new Object[] { exception });
            }
            mib.addInvocation(activity, "changeState",
                    new String[] { "java.lang.String" },
View Full Code Here


            if (!state.startsWith("open.running.debug.abandoning")) {
                mib.addInvocation(activity, "abandon",
                        new String[] { "java.lang.String" },
                        new Object[] { exception });
            }
            mib.addInvocation(activity, "changeState",
                    new String[] { "java.lang.String" },
                    new Object[] { "open.running.debug.awaiting_exception" });
            mib.addInvocation(activity, "abandon",
                    new String[] { "java.lang.String" },
                    new Object[] { exception });
View Full Code Here

                        new Object[] { exception });
            }
            mib.addInvocation(activity, "changeState",
                    new String[] { "java.lang.String" },
                    new Object[] { "open.running.debug.awaiting_exception" });
            mib.addInvocation(activity, "abandon",
                    new String[] { "java.lang.String" },
                    new Object[] { exception });
        } else {
            // asynchronous deadline, simply have it sent
            mib.addInvocation(activity, "changeState",
View Full Code Here

            mib.addInvocation(activity, "abandon",
                    new String[] { "java.lang.String" },
                    new Object[] { exception });
        } else {
            // asynchronous deadline, simply have it sent
            mib.addInvocation(activity, "changeState",
                    new String[] { "java.lang.String" },
                    new Object[] { "open.running.debug.forwarding_exception" });
            mib.addInvocation(activity, "abandon",
                    new String[] { "java.lang.String" },
                    new Object[] { exception });
View Full Code Here

        } else {
            // asynchronous deadline, simply have it sent
            mib.addInvocation(activity, "changeState",
                    new String[] { "java.lang.String" },
                    new Object[] { "open.running.debug.forwarding_exception" });
            mib.addInvocation(activity, "abandon",
                    new String[] { "java.lang.String" },
                    new Object[] { exception });
        }
        try {
            MethodInvocationBatch.Result mir = (MethodInvocationBatch.Result)
View Full Code Here

     * @throws RemoteException
     */
    private void retrieveDataFields(Map dataFieldAttrs)
        throws RemoteException {
        MethodInvocationBatch mib = new MethodInvocationBatch ();
        mib.addInvocation (process(), "processDefinition", null, null);
        mib.addInvocation(-1, "contextSignature", null, null, true);
        mib.addInvocation(process(), "processContext", null, null);
        MethodInvocationBatch.Result mir = null;
        try {
            WorkflowService wfs = WorkflowServiceConnection
View Full Code Here

     */
    private void retrieveDataFields(Map dataFieldAttrs)
        throws RemoteException {
        MethodInvocationBatch mib = new MethodInvocationBatch ();
        mib.addInvocation (process(), "processDefinition", null, null);
        mib.addInvocation(-1, "contextSignature", null, null, true);
        mib.addInvocation(process(), "processContext", null, null);
        MethodInvocationBatch.Result mir = null;
        try {
            WorkflowService wfs = WorkflowServiceConnection
                .instance("workflowServiceConnection").getWorkflowService();
View Full Code Here

      pmgr = pdd.processMgr("ut-process", "jut1");
  } finally {
      workflowService().release (pdd);
  }
  MethodInvocationBatch mib = new MethodInvocationBatch();
  mib.addInvocation
      (pmgr, "createProcess", new String[]
    {"de.danet.an.workflow.omgcore.WfRequester"},
       new Object[]{new DefaultRequester(workflowService())});
  mib.addInvocation(-1, "key", null, null, false);
  mib.addInvocation(-2, "start", null, null, false);
View Full Code Here

  MethodInvocationBatch mib = new MethodInvocationBatch();
  mib.addInvocation
      (pmgr, "createProcess", new String[]
    {"de.danet.an.workflow.omgcore.WfRequester"},
       new Object[]{new DefaultRequester(workflowService())});
  mib.addInvocation(-1, "key", null, null, false);
  mib.addInvocation(-2, "start", null, null, false);
  MethodInvocationBatch.Result mir = (MethodInvocationBatch.Result)
      workflowService().executeBatch(mib);
  if (mir.hasExceptions ()) {
      Exception e = mir.firstException ();
View Full Code Here

  mib.addInvocation
      (pmgr, "createProcess", new String[]
    {"de.danet.an.workflow.omgcore.WfRequester"},
       new Object[]{new DefaultRequester(workflowService())});
  mib.addInvocation(-1, "key", null, null, false);
  mib.addInvocation(-2, "start", null, null, false);
  MethodInvocationBatch.Result mir = (MethodInvocationBatch.Result)
      workflowService().executeBatch(mib);
  if (mir.hasExceptions ()) {
      Exception e = mir.firstException ();
      assertTrue ("Problem executing batch: " + e.getMessage(), false);
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.