Package org.jbpm.process.core.context.variable

Examples of org.jbpm.process.core.context.variable.VariableScope.findVariable()


                                descr,
                                null,
                                "Could not find variable '" + variableName + "' for action '" + descr.getText() + "'" ) );                   
                    } else {
                        variables.put(variableName,
                                      context.getDialect().getTypeResolver().resolveType(variableScope.findVariable(variableName).getType().getStringType()));
                    }
                }
            }

            MVELCompilationUnit unit = dialect.getMVELCompilationUnit( text,
View Full Code Here


      final List variableTypes = new ArrayList(globals.length);
        for (String variableName: unboundIdentifiers) {
          VariableScope variableScope = (VariableScope) contextResolver.resolveContext(VariableScope.VARIABLE_SCOPE, variableName);
          if (variableScope != null) {
            variables.add(variableName);
            variableTypes.add(variableScope.findVariable(variableName).getType().getStringType());
          }
        }

        map.put("variables",
                variables);
View Full Code Here

                              actionDescr,
                              null,
                              "Could not find variable '" + variableName + "' for action '" + actionDescr.getText() + "'" ) );               
                } else {
                  variables.put(variableName,
                                context.getDialect().getTypeResolver().resolveType(variableScope.findVariable(variableName).getType().getStringType()));
                }
              }
            }

            MVELCompilationUnit unit = dialect.getMVELCompilationUnit( text,
View Full Code Here

        }
        for (Map.Entry<String, String> entry: taskNode.getOutMappings().entrySet()) {
          String type = null;
          VariableScope variableScope = (VariableScope) taskNode.resolveContext(VariableScope.VARIABLE_SCOPE, entry.getValue());
          if (variableScope != null) {
            type = variableScope.findVariable(entry.getValue()).getType().getStringType();
          }
          testCode +=
            "        // results.put(\"" + entry.getKey() + "\", value);" + (type == null ? "" : " // type " + type) + "\n";
        }
        testCode +=
View Full Code Here

                }
                for (Map.Entry<String, String> entry: node.getInMappings().entrySet()) {
                  if (task.getInputParams().get(entry.getKey()) == null) {
                    VariableScope variableScope = (VariableScope) node.resolveContext(VariableScope.VARIABLE_SCOPE, entry.getValue());
                        if (variableScope != null) {
                          task.getInputParams().put(entry.getKey(), variableScope.findVariable(entry.getValue()).getType().getStringType());
                        }
                  }
                }
                for (Map.Entry<String, String> entry: node.getOutMappings().entrySet()) {
                  if (task.getOutputParams().get(entry.getKey()) == null) {
View Full Code Here

                }
                for (Map.Entry<String, String> entry: node.getOutMappings().entrySet()) {
                  if (task.getOutputParams().get(entry.getKey()) == null) {
                    VariableScope variableScope = (VariableScope) node.resolveContext(VariableScope.VARIABLE_SCOPE, entry.getValue());
                        if (variableScope != null && !"outcome".equals(entry.getKey())) {
                          task.getOutputParams().put(entry.getKey(), variableScope.findVariable(entry.getValue()).getType().getStringType());
                        }
                  }
                }
              }
                WorkspaceModifyOperation op = new WorkspaceModifyOperation() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.