Tabnine Logo
Money.getAmount
Code IndexAdd Tabnine to your IDE (free)

How to use
getAmount
method
in
com.effektif.workflow.api.model.Money

Best Java code snippets using com.effektif.workflow.api.model.Money.getAmount (Showing top 4 results out of 315)

origin: effektif/effektif

@Override
public void writeBpmnValue(BpmnWriter w, Object value) {
 if (value != null && value instanceof Money) {
  Money moneyValue = (Money) value;
  w.writeStringAttributeEffektif("currency", moneyValue.getCurrency());
  w.writeStringAttributeEffektif("amount", moneyValue.getAmount());
 }
}
origin: com.effektif/effektif-workflow-api

@Override
public void writeBpmnValue(BpmnWriter w, Object value) {
 if (value != null && value instanceof Money) {
  Money moneyValue = (Money) value;
  w.writeStringAttributeEffektif("currency", moneyValue.getCurrency());
  w.writeStringAttributeEffektif("amount", moneyValue.getAmount());
 }
}
origin: effektif/effektif

@Test
public void testListOfMoneyType() {
 ExecutableWorkflow workflow = new ExecutableWorkflow()
  .variable("v", new ListType(new MoneyType()));
 
 deploy(workflow);
 WorkflowInstance workflowInstance = workflowEngine.start(new TriggerInstance()
  .workflowId(workflow.getId())
  .data("v", Lists.of(
      new Money().amount(5d).currency("USD"),
      new Money().amount(6d).currency("EUR"))));
 
 List<Money> moneys = workflowInstance.getVariableValue("v");
 assertEquals(new Double(5d), moneys.get(0).getAmount());
 assertEquals("USD", moneys.get(0).getCurrency());
 assertEquals(new Double(6d), moneys.get(1).getAmount());
 assertEquals("EUR", moneys.get(1).getCurrency());
}
origin: effektif/effektif

@Test
public void testMoneyType() {
 ExecutableWorkflow workflow = new ExecutableWorkflow()
  .variable("v", new MoneyType());
 
 deploy(workflow);
 WorkflowInstance workflowInstance = workflowEngine.start(new TriggerInstance()
  .workflowId(workflow.getId())
  .data("v", new Money().amount(5d).currency("USD")));
 
 Money money = workflowInstance.getVariableValue("v", Money.class);
 assertEquals(new Double(5d), money.getAmount());
 assertEquals("USD", money.getCurrency());
}
com.effektif.workflow.api.modelMoneygetAmount

Popular methods of Money

  • amount
  • currency
  • <init>
  • getCurrency
  • toString

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • findViewById (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Notification (javax.management)
  • CodeWhisperer alternatives
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