Tabnine Logo
WorkflowInstanceImpl.setVariableValue
Code IndexAdd Tabnine to your IDE (free)

How to use
setVariableValue
method
in
com.effektif.workflow.impl.workflowinstance.WorkflowInstanceImpl

Best Java code snippets using com.effektif.workflow.impl.workflowinstance.WorkflowInstanceImpl.setVariableValue (Showing top 3 results out of 315)

origin: effektif/effektif

 /**
  * Copies the trigger data from the given {@link com.effektif.workflow.api.model.TriggerInstance} to the given
  * {@link com.effektif.workflow.impl.workflowinstance.WorkflowInstanceImpl} when starting a workflow.
  */
 public void applyTriggerData(WorkflowInstanceImpl workflowInstance, TriggerInstance triggerInstance) {
  Map<String, TypedValue> data = triggerInstance.getData();
  if (data!=null) {
   for (String key: data.keySet()) {
    TypedValue typedValue = data.get(key);
    Object value = typedValue!=null ? typedValue.getValue() : null;
    String outputVariableId = outputs!=null ? outputs.get(key) : null;
    if (value!=null && outputVariableId!=null) {
     workflowInstance.setVariableValue(outputVariableId, value);
    }
   }
  }
 }
}
origin: effektif/effektif

public void assertResolveTemplate(String expected, TextTemplate tt) {
 WorkflowInstanceImpl workflowInstance = new WorkflowInstanceImpl();
 workflowInstance.configuration = configuration;
 workflowInstance.workflowInstance = workflowInstance;
 workflowInstance.nextVariableInstanceId = 1l;
 workflowInstance.setVariableValue("v1", "x");
 workflowInstance.setVariableValue("v2", "y");
 assertEquals(expected, tt.resolve(workflowInstance));
}
origin: effektif/effektif

@Test
public void testUnsetVariableFieldRendersEmptyString() {
 TextTemplate template = parse("{{user.firstName}}");
 WorkflowInstanceImpl workflowInstance = new WorkflowInstanceImpl();
 workflowInstance.configuration = configuration;
 workflowInstance.workflowInstance = workflowInstance;
 workflowInstance.nextVariableInstanceId = 1l;
 workflowInstance.setVariableValue("user", new HashMap<>());
 assertEquals("", template.resolve(workflowInstance));
}
com.effektif.workflow.impl.workflowinstanceWorkflowInstanceImplsetVariableValue

Popular methods of WorkflowInstanceImpl

  • <init>
  • getId
  • toWorkflowInstance
  • findActivityInstance
  • getUpdates
  • notifyUnlockListeners
  • removeLock
  • addAsyncWork
  • addJob
  • addLockedWorkflowInstance
  • addSyncWork
  • addUnlockListener
  • addSyncWork,
  • addUnlockListener,
  • addWork,
  • cancel,
  • destroyScopeInstance,
  • endAndPropagateToParent,
  • execute,
  • executeWork,
  • findActivityInstanceByActivityId

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JOptionPane (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text plugins
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