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

Examples of org.jbpm.process.core.context.variable.Variable


    private RuleFlowProcess getWorkItemProcess(String processId, String workName) {
        RuleFlowProcess process = new RuleFlowProcess();
        process.setId( processId );

        List<Variable> variables = new ArrayList<Variable>();
        Variable variable = new Variable();
        variable.setName( "UserName" );
        variable.setType( new StringDataType() );
        variables.add( variable );
       
        variable = new Variable();
        variable.setName( "MyObject" );
        variable.setType( new ObjectDataType() );
        variables.add( variable );
        variable = new Variable();
        variable.setName( "Number" );
        variable.setType( new IntegerDataType() );
        variables.add( variable );
        process.getVariableScope().setVariables( variables );

        StartNode startNode = new StartNode();
        startNode.setName( "Start" );
View Full Code Here


       
        return composite;
    }
   
    protected Variable updateValue(Variable value) {
        Variable variable = (Variable) getValue();
        String name = nameText.getText();
        if ("".equals(name)) {
            throw new IllegalArgumentException("Name should not be empty");
        }
        variable.setName(name);
        variable.setType(dataTypeEditorComposite.getDataType());
        variable.setValue(editorComposite.getValue());
        return variable;
    }
View Full Code Here

    protected VariableListDialog(Shell parentShell) {
        super(parentShell, "Variable List Editor", VariableDialog.class);
    }

    protected Variable createItem() {
        return new Variable();
    }
View Full Code Here

TOP

Related Classes of org.jbpm.process.core.context.variable.Variable

Copyright © 2018 www.massapicom. 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.