Example usage for org.apache.commons.scxml.model Assign getName

List of usage examples for org.apache.commons.scxml.model Assign getName

Introduction

In this page you can find the example usage for org.apache.commons.scxml.model Assign getName.

Prototype

public String getName() 

Source Link

Document

Get the variable to be assigned a new value.

Usage

From source file:org.finra.datagenerator.engine.scxml.tags.SingleValueAssignExtension.java

/**
 * Assigns one variable to one value//  w  ww .j  a v a 2  s  .c o  m
 *
 * @param action an Assign Action
 * @param possibleStateList a current list of possible states produced so far from expanding a model state
 *
 * @return the same list, with every possible state augmented with an assigned variable, defined by action
 */
public List<Map<String, String>> pipelinePossibleStates(Assign action,
        List<Map<String, String>> possibleStateList) {
    for (Map<String, String> possibleState : possibleStateList) {
        possibleState.put(action.getName(), action.getExpr());
    }

    return possibleStateList;
}