Package com.opensymphony.workflow

Examples of com.opensymphony.workflow.Workflow.doAction()


    long id = Long.parseLong(request.getParameter("id"));

    String doString = request.getParameter("do");
    if (doString != null && !doString.equals("")) {
        int action = Integer.parseInt(doString);
        wf.doAction(id, action, Collections.EMPTY_MAP);
    }


    int[] actions = wf.getAvailableActions(id);
View Full Code Here


        inputs.put(key, value);

        // record expected calls
        workflow.setConfiguration(OsWorkflowTemplateTests.this.configuration);
        ctl.setVoidCallable();
        workflow.doAction(MOCK_INSTANCE_ID, 1, inputs);
        ctl.setVoidCallable();
        ctl.replay();

        return workflow;
      }
View Full Code Here

        Workflow workflow = (Workflow) ctl.getMock();
        // check that configuration is set
        workflow.setConfiguration(OsWorkflowTemplateTests.this.configuration);

        // check that doAction is called as expected
        workflow.doAction(MOCK_INSTANCE_ID, actionId, inputs);
        ctl.replay();
        return workflow;
      }
    };
  }
View Full Code Here

        //workflow.doAction(id, availableActionId, Collections.EMPTY_MAP);
      }
      Map map = new HashMap();
      map.put("userName", "Mattias");
      workflow.doAction(id, 1, map);

      actions = workflow.getAvailableActions(id, null);
      logger.info("actions:" + actions.length);
      wd = workflow.getWorkflowDescriptor(workflow.getWorkflowName(id));
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.