Package org.camunda.bpm.engine.impl.bpmn.behavior

Examples of org.camunda.bpm.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior


   * Parses a scriptTask declaration.
   */
  public ActivityImpl parseScriptTask(Element scriptTaskElement, ScopeImpl scope) {
    ActivityImpl activity = createActivityOnScope(scriptTaskElement, scope);

    ScriptTaskActivityBehavior activityBehavior = parseScriptTaskElement(scriptTaskElement);

    if (activityBehavior != null) {
      parseAsynchronousContinuation(scriptTaskElement, activity);

      activity.setActivityBehavior(activityBehavior);
View Full Code Here


    }
    String scriptResource = scriptTaskElement.attributeNS(BpmnParser.ACTIVITI_BPMN_EXTENSIONS_NS, "resource");

    try {
      ExecutableScript script = ScriptUtil.getScript(language, scriptSource, scriptResource, expressionManager);
      return new ScriptTaskActivityBehavior(script, resultVariableName);
    }
    catch (ProcessEngineException e) {
      addError("Unable to process ScriptTask: " + e.getMessage(), scriptElement);
      return null;
    }
View Full Code Here

   * Parses a scriptTask declaration.
   */
  public ActivityImpl parseScriptTask(Element scriptTaskElement, ScopeImpl scope) {
    ActivityImpl activity = createActivityOnScope(scriptTaskElement, scope);

    ScriptTaskActivityBehavior activityBehavior = parseScriptTaskElement(scriptTaskElement);

    if (activityBehavior == null) {
      addError("ScriptTask does not provide script", scriptTaskElement);
      return activity;
    }
View Full Code Here

    // determine script source
    Element scriptElement = scriptTaskElement.element("script");
    String scriptResource = scriptTaskElement.attributeNS(BpmnParser.ACTIVITI_BPMN_EXTENSIONS_NS, "resource");
    if (scriptElement != null) {
      String scriptSource = scriptElement.getText();
      return new ScriptTaskActivityBehavior(parseScriptSource(scriptSource, language), resultVariableName);
    } else if (scriptResource != null) {
      try {
        return new ScriptTaskActivityBehavior(parseScriptResource(scriptResource, language), resultVariableName);
      } catch (ProcessEngineException e) {
        addError("Unable to load script file from resource " + scriptResource, scriptTaskElement);
      }
    }
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.bpmn.behavior.ScriptTaskActivityBehavior

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.