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

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

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

origin: effektif/effektif

public Map<String, Binding> getInputBindings() {
 if (inputs == null) {
  return null;
 }
 Map<String,Binding> bindings = new HashMap<>();
 for (Map.Entry<String, InputParameter> parameter : inputs.entrySet()) {
  Binding<?> binding = parameter.getValue().getBinding();
  if (binding != null) {
   bindings.put(parameter.getKey(), binding);
  }
 }
 return bindings;
}
origin: com.effektif/effektif-workflow-api

public Activity inputListBinding(String key, Binding<?> inputBinding) {
 if (inputs==null) {
  inputs = new HashMap<>();
 }
 InputParameter parameter = inputs.get(key);
 if (parameter==null) {
  parameter = new InputParameter();
  inputs.put(key, parameter);
 }
 parameter.addBinding(inputBinding);
 return this;
}
origin: com.effektif/effektif-workflow-api

public Activity inputBinding(String key, Binding<?> binding) {
 if (inputs==null) {
  inputs = new HashMap<>();
 }
 inputs.put(key, new InputParameter().binding(binding));
 return this;
}
origin: com.effektif/effektif-workflow-api

protected void setInputBindings(String key, List<Binding<?>> bindings) {
 if (inputs==null) {
  inputs = new HashMap<>();
 }
 InputParameter parameter = inputs.get(key);
 if (parameter==null) {
  parameter = new InputParameter();
  inputs.put(key, parameter);
 }
 parameter.setBindings(bindings);
}
origin: com.effektif/effektif-workflow-api

InputParameter parameter = new InputParameter();
List<Binding<Object>> singleBinding = r.readBindings("binding");
if (singleBinding != null && !singleBinding.isEmpty()) {
 parameter.setBinding(singleBinding.get(0));
 r.startElement(bindingsElement);
 List bindings = r.readBindings("binding");
 parameter.setBindings(bindings);
 r.endElement();
if (parameter.getBinding() != null || parameter.getBindings() != null) {
 inputs.put(key, parameter);
origin: effektif/effektif

w.writeStringAttributeEffektif("key", input.getKey());
InputParameter parameter = input.getValue();
if (parameter.getBinding() != null) {
 w.writeBinding("binding", parameter.getBinding());
if (parameter.getBindings() != null) {
 w.startElementEffektif("bindings");
 w.writeStringAttributeEffektif("key", input.getKey());
 List bindings = parameter.getBindings();
 w.writeBindings("binding", bindings);
 w.endElement();
origin: effektif/effektif

InputParameterImpl inParameterImpl = new InputParameterImpl(key);
parser.pushContext(key, inParameter, inParameterImpl, null);
Binding< ? > singleBinding = inParameter.getBinding();
if (singleBinding!=null) {
 inParameterImpl.binding = parser.parseBinding(singleBinding, "binding");
List<Binding<?>> listBindings = inParameter.getBindings();
if (listBindings!=null) {
 inParameterImpl.bindings = new ArrayList<>();
inParameterImpl.properties = inParameter.getProperties();
parser.popContext();
this.inputs.put(key, inParameterImpl);
origin: effektif/effektif

InputParameter parameter = new InputParameter();
List<Binding<Object>> singleBinding = r.readBindings("binding");
if (singleBinding != null && !singleBinding.isEmpty()) {
 parameter.setBinding(singleBinding.get(0));
 r.startElement(bindingsElement);
 List bindings = r.readBindings("binding");
 parameter.setBindings(bindings);
 r.endElement();
if (parameter.getBinding() != null || parameter.getBindings() != null) {
 inputs.put(key, parameter);
origin: com.effektif/effektif-workflow-api

w.writeStringAttributeEffektif("key", input.getKey());
InputParameter parameter = input.getValue();
if (parameter.getBinding() != null) {
 w.writeBinding("binding", parameter.getBinding());
if (parameter.getBindings() != null) {
 w.startElementEffektif("bindings");
 w.writeStringAttributeEffektif("key", input.getKey());
 List bindings = parameter.getBindings();
 w.writeBindings("binding", bindings);
 w.endElement();
origin: effektif/effektif

protected void setInputBindings(String key, List<Binding<?>> bindings) {
 if (inputs==null) {
  inputs = new HashMap<>();
 }
 InputParameter parameter = inputs.get(key);
 if (parameter==null) {
  parameter = new InputParameter();
  inputs.put(key, parameter);
 }
 parameter.setBindings(bindings);
}
origin: effektif/effektif

@Test
public void testInOutParameters() {
 ExecutableWorkflow workflow = new ExecutableWorkflow()
  .activity("a", new NoneTask()
   .inputValue("in1", "value1")
   .inputExpression("in2", "expression2")
   .inputListBinding("in3", new Binding<Object>().value("listValue1"))
   .inputListBinding("in3", new Binding<Object>().expression("listExpression2"))
   .output("out1", "var1"));
 workflow = serializeWorkflow(workflow);
 
 Activity activity = workflow.getActivities().get(0);
 assertEquals("value1", activity.getInputs().get("in1").getBinding().getValue());
 assertEquals("expression2", activity.getInputs().get("in2").getBinding().getExpression());
 assertEquals("listValue1", activity.getInputs().get("in3").getBindings().get(0).getValue());
 assertEquals("listExpression2", activity.getInputs().get("in3").getBindings().get(1).getExpression());
 assertEquals("var1", activity.getOutputs().get("out1"));
}
origin: com.effektif/effektif-workflow-api

public Map<String, Binding> getInputBindings() {
 if (inputs == null) {
  return null;
 }
 Map<String,Binding> bindings = new HashMap<>();
 for (Map.Entry<String, InputParameter> parameter : inputs.entrySet()) {
  Binding<?> binding = parameter.getValue().getBinding();
  if (binding != null) {
   bindings.put(parameter.getKey(), binding);
  }
 }
 return bindings;
}
origin: effektif/effektif

public Activity inputListBinding(String key, Binding<?> inputBinding) {
 if (inputs==null) {
  inputs = new HashMap<>();
 }
 InputParameter parameter = inputs.get(key);
 if (parameter==null) {
  parameter = new InputParameter();
  inputs.put(key, parameter);
 }
 parameter.addBinding(inputBinding);
 return this;
}
origin: effektif/effektif

public Activity inputBinding(String key, Binding<?> binding) {
 if (inputs==null) {
  inputs = new HashMap<>();
 }
 inputs.put(key, new InputParameter().binding(binding));
 return this;
}
com.effektif.workflow.api.workflowInputParameter

Most used methods

  • getBinding
  • getBindings
  • <init>
  • addBinding
  • binding
  • getProperties
  • setBinding
  • setBindings

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • JFrame (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Join (org.hibernate.mapping)
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
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