Package org.enhydra.shark.xpdl.elements

Examples of org.enhydra.shark.xpdl.elements.Condition


     * Suggest to automatically add a Condition if a name is specified
     */
    protected void suggestCondition() {
        Transition transition = (Transition)getOwner();
        String name = transition.getName();
        Condition condition = transition.getCondition();
        String conditionType = (condition != null) ? condition.getType() : "";
        String expression = (condition != null) ? condition.toValue() : "";

        // check when transition name is specified and no existing condition
        if (name != null && name.trim().length() > 0
                && conditionType.trim().length() == 0 || conditionType.equals(XPDLConstants.CONDITION_TYPE_CONDITION)
                && expression.trim().length() == 0) {
View Full Code Here


     * @param value
     */
    protected void populateExpression(Transition transition, String variable, String value) {
        // set expression
        String expression = variable + "=='" + value + "'";
        Condition condition = transition.getCondition();
        condition.setTypeCONDITION();
        condition.setValue(expression);

        // reset name to blank
        transition.setName("");
    }
View Full Code Here

TOP

Related Classes of org.enhydra.shark.xpdl.elements.Condition

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.