Package org.jbpm.process.instance.impl

Examples of org.jbpm.process.instance.impl.Action.execute()


  protected void executeAction(DroolsAction droolsAction) {
    Action action = (Action) droolsAction.getMetaData("Action");
    ProcessContext context = new ProcessContext(getProcessInstance().getKnowledgeRuntime());
    context.setNodeInstance(this);
    try {
      action.execute(context);
    } catch (Exception exception) {
      exception.printStackTrace();
      String exceptionName = exception.getClass().getName();
      ExceptionScopeInstance exceptionScopeInstance = (ExceptionScopeInstance)
        resolveContextInstance(ExceptionScope.EXCEPTION_SCOPE, exceptionName);
View Full Code Here


          }
          String faultVariable = handler.getFaultVariable();
          if (faultVariable != null) {
            processContext.setVariable(faultVariable, params);
          }
            action.execute(processContext);
      } catch (Exception e) {
          throw new RuntimeException("unable to execute Action", e);
      }
    } else {
      throw new IllegalArgumentException("Unknown exception handler " + handler);
View Full Code Here

        }
    Action action = (Action) getActionNode().getAction().getMetaData("Action");
    try {
        ProcessContext context = new ProcessContext(getProcessInstance().getKnowledgeRuntime());
        context.setNodeInstance(this);
          action.execute(context);       
    } catch (Exception e) {
        throw new RuntimeException("unable to execute Action", e);
    }
      triggerCompleted();
    }
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.