Tabnine Logo
MultiInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
MultiInstance
in
com.effektif.workflow.api.workflow

Best Java code snippets using com.effektif.workflow.api.workflow.MultiInstance (Showing top 9 results out of 315)

origin: effektif/effektif

 public void parse(MultiInstance multiInstance, WorkflowParser parser, ScopeImpl parentImpl) {
  this.valuesBindings = parser.parseBindings(multiInstance.getValues(), "multiInstance.values");
  Variable elementVariable = multiInstance.getVariable();
  if (elementVariable!=null) {
   this.elementVariable = new VariableImpl();
   parser.pushContext("elementVariable", elementVariable, null, -1);
   this.elementVariable.parse(elementVariable, parentImpl, parser);
   parser.popContext();
  } else {
   parser.addError("Multi instance has no elementVariable");
  }
 }
}
origin: effektif/effektif

public MultiInstance valuesExpression(String expression) {
 addValueBinding(new Binding().expression(expression));
 return this;
}
protected MultiInstance addValueBinding(Binding valueBinding) {
origin: effektif/effektif

@Test
public void testActivity() {
 Activity activity = new NoneTask()
  .id("verifyRequirements")
  .defaultTransitionId("continue")
  .multiInstance(new MultiInstance()
   .valuesExpression("reviewers")
   .variable("reviewer", TextType.INSTANCE));
 activity = serializeActivity(activity);
 assertEquals("verifyRequirements", activity.getId());
 assertEquals("continue", activity.getDefaultTransitionId());
 assertNotNull(activity.getMultiInstance());
 assertEquals("reviewer", activity.getMultiInstance().getVariable().getId());
 assertEquals("reviewers", activity.getMultiInstance().getValues().get(0).getExpression());
}
origin: effektif/effektif

 @Test
 public void testMultiInstanceBasics() throws Exception {
  ExecutableWorkflow workflow = new ExecutableWorkflow()
   .variable("reviewers", new ListType(TextType.INSTANCE))
   .activity("Review", msgExpression("reviewer")
    .multiInstance(new MultiInstance()
     .valuesExpression("reviewers")
     .variable("reviewer", TextType.INSTANCE)));
  
  deploy(workflow);
  
  WorkflowInstance workflowInstance = workflowEngine.start(new TriggerInstance()
   .workflowId(workflow.getId())
   .data("reviewers", Lists.of(
       "jack",
       "john", 
       "mary")));

  assertTrue(workflowInstance.isEnded());
  
  assertEquals("jack", getMessage(0));
  assertEquals("john", getMessage(1));
  assertEquals("mary", getMessage(2));
 }
}
origin: com.effektif/effektif-workflow-api

multiInstance = new MultiInstance();
multiInstance.readBpmn(r);
r.endElement();
origin: com.effektif/effektif-workflow-api

multiInstance.writeBpmn(w);
origin: effektif/effektif

multiInstance = new MultiInstance();
multiInstance.readBpmn(r);
r.endElement();
origin: effektif/effektif

multiInstance.writeBpmn(w);
origin: com.effektif/effektif-workflow-api

public MultiInstance valuesExpression(String expression) {
 addValueBinding(new Binding().expression(expression));
 return this;
}
protected MultiInstance addValueBinding(Binding valueBinding) {
com.effektif.workflow.api.workflowMultiInstance

Javadoc

Models multiple instances of a workflow activity, where each instance has a specified workflow variable set to one of the values in a collection. Note that BPMN supports an isSequential flag to indicate whether the multiple instances are executed sequentially or in parallel.

Most used methods

  • <init>
  • getValues
  • getVariable
  • addValueBinding
  • readBpmn
    Reads the multi-instance model from extension elements, ignoring the BPMN multiInstanceLoopCharacter
  • valuesExpression
  • variable
  • writeBpmn

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now