Examples of WorkflowEngine


Examples of de.danet.an.workflow.ejbs.WorkflowEngine

     * Get the resource assignment invocation handler.
     * @return the configured resource assignment invocation handler.
     */
    protected RASInvocationHandler rasInvocationHandler() {
  if (rasCache == null) {
      WorkflowEngine engine = null;
      try {
    ResourceAssignmentService ras
                    = engineLocal().resourceAssignmentService ();
                if (ras == null) {
                    return null;
View Full Code Here

Examples of de.danet.an.workflow.ejbs.WorkflowEngine

     * available for any reason
     * @ejb.interface-method view-type="remote"
    */
    public Collection history()
  throws HistoryNotAvailableException {
  WorkflowEngine engine  = null;
  try {
      return engineLocal().history (toActivity());
  } catch (RemoteException rex){
      throw new EJBException (rex);
  }
View Full Code Here

Examples of de.danet.an.workflow.ejbs.WorkflowEngine

       // than de.danet.an.workflow.omgcore
       Object objref = serverContext.lookup(homeName);
       WorkflowEngineHome wfeh
           = (WorkflowEngineHome)PortableRemoteObject.narrow
        (objref, WorkflowEngineHome.class);
       WorkflowEngine wfe = wfeh.create();
       WorkflowService service = new StandardWorkflowService
           (recoveryProps, serverContext, wfe);
       return service;
   } catch (NamingException e) {
       logger.error (e.getMessage (), e);
View Full Code Here

Examples of de.danet.an.workflow.ejbs.WorkflowEngine

    /**
     * Called by container when a new message is to be processed.
     * @param message the message.
     */
    public void onMessage(Message message) {
  WorkflowEngine wfe = null;
  try {
      Map args = (Map)((ObjectMessage)message).getObject();
      WfAuditEvent evt = (DefaultAuditEvent)args.get("event");
      try {
    engine().processEvent (evt);
View Full Code Here

Examples of org.apache.lenya.workflow.WorkflowEngine

     *      java.lang.String, boolean)
     */
    public void invoke(Workflowable workflowable, String event, boolean force)
            throws WorkflowException {
        if (hasWorkflow(workflowable)) {
            WorkflowEngine engine = new WorkflowEngineImpl();
            Workflow workflow = getWorkflowSchema(workflowable);

            if (force && !engine.canInvoke(workflowable, workflow, event)) {
                throw new WorkflowException("The event [" + event
                        + "] cannot be invoked on the document [" + workflowable + "]");
            }
            engine.invoke(workflowable, workflow, event);
        }
    }
View Full Code Here

Examples of org.apache.lenya.workflow.WorkflowEngine

    public boolean canInvoke(Workflowable workflowable, String event) {
        boolean canInvoke = true;
        try {
            if (hasWorkflow(workflowable)) {
                Workflow workflow = getWorkflowSchema(workflowable);
                WorkflowEngine engine = new WorkflowEngineImpl();
                canInvoke = engine.canInvoke(workflowable, workflow, event);
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        return canInvoke;
View Full Code Here

Examples of org.apache.lenya.workflow.WorkflowEngine

     *      java.lang.String, boolean)
     */
    public void invoke(Workflowable workflowable, String event, boolean force)
            throws WorkflowException {
        if (hasWorkflow(workflowable)) {
            WorkflowEngine engine = new WorkflowEngineImpl();
            Workflow workflow = getWorkflowSchema(workflowable);

            if (force && !engine.canInvoke(workflowable, workflow, event)) {
                throw new WorkflowException("The event [" + event
                        + "] cannot be invoked on the document [" + workflowable + "]");
            }
            engine.invoke(workflowable, workflow, event);
        }
    }
View Full Code Here

Examples of org.apache.lenya.workflow.WorkflowEngine

    public boolean canInvoke(Workflowable workflowable, String event) {
        boolean canInvoke = true;
        try {
            if (hasWorkflow(workflowable)) {
                Workflow workflow = getWorkflowSchema(workflowable);
                WorkflowEngine engine = new WorkflowEngineImpl();
                canInvoke = engine.canInvoke(workflowable, workflow, event);
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        return canInvoke;
View Full Code Here

Examples of org.apache.lenya.workflow.WorkflowEngine

     *      java.lang.String, boolean)
     */
    public void invoke(Workflowable workflowable, String event, boolean force)
            throws WorkflowException {
        if (hasWorkflow(workflowable)) {
            WorkflowEngine engine = new WorkflowEngineImpl();
            Situation situation = getSituation();
            Workflow workflow = getWorkflowSchema(workflowable);

            if (force && !engine.canInvoke(workflowable, workflow, situation, event)) {
                throw new WorkflowException("The event [" + event
                        + "] cannot be invoked on the document [" + workflowable
                        + "] in the situation [" + situation + "]");
            }
            engine.invoke(workflowable, workflow, situation, event);
        }
    }
View Full Code Here

Examples of org.apache.lenya.workflow.WorkflowEngine

    public boolean canInvoke(Workflowable workflowable, String event) {
        boolean canInvoke = true;
        try {
            if (hasWorkflow(workflowable)) {
                Workflow workflow = getWorkflowSchema(workflowable);
                WorkflowEngine engine = new WorkflowEngineImpl();
                Situation situation = getSituation();
                canInvoke = engine.canInvoke(workflowable, workflow, situation, event);
            }
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        return canInvoke;
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.