@Test public void testSerialization() { Assignment a = new Assignment(ad, "input1", Variable.VariableType.INPUT, "String", null, null, "#{variableName}"); assertEquals("[din]input1=%23%7BvariableName%7D", a.toString()); a = new Assignment(ad, "output1", OUTPUT, "String", null, null, "#{variableName}"); assertEquals("[dout]%23%7BvariableName%7D=output1", a.toString()); }
@Override public String toString() { StringBuilder sb = new StringBuilder(); if (getVariableType() == Variable.VariableType.INPUT) { if (getExpression() != null && !getExpression().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append( StringUtils.urlEncode(getExpression())); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getProcessVarName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } else { sb.append(INPUT_ASSIGNMENT_PREFIX).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } } else { if (!isEmpty(getExpression())) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(StringUtils.urlEncode(getExpression())).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append(getName()); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getProcessVarName()); } else { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE); } } return sb.toString(); }
Assignment { @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getVariableType() == Variable.VariableType.INPUT) { if (getExpression() != null && !getExpression().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append( StringUtils.urlEncode(getExpression())); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getProcessVarName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } else { sb.append(INPUT_ASSIGNMENT_PREFIX).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } } else { if (!isEmpty(getExpression())) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(StringUtils.urlEncode(getExpression())).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append(getName()); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getProcessVarName()); } else { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE); } } return sb.toString(); } }
Assignment { @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getVariableType() == Variable.VariableType.INPUT) { if (getExpression() != null && !getExpression().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append( StringUtils.urlEncode(getExpression())); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getProcessVarName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } else { sb.append(INPUT_ASSIGNMENT_PREFIX).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } } else { if (!isEmpty(getExpression())) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(StringUtils.urlEncode(getExpression())).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append(getName()); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getProcessVarName()); } else { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE); } } return sb.toString(); } Assignment();  Assignment(final AssignmentData assignmentData,
                      final String variableName,
                      final Variable.VariableType variableType,
                      final String dataType,
                      final String customDataType,
                      final String processVarName,
                      final String expression);  Assignment(final AssignmentData assignmentData,
                      final String variableName,
                      final Variable.VariableType variableType,
                      final String processVarName,
                      final String expression); }
Assignment { @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getVariableType() == Variable.VariableType.INPUT) { if (getExpression() != null && !getExpression().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append( StringUtils.urlEncode(getExpression())); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getProcessVarName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } else { sb.append(INPUT_ASSIGNMENT_PREFIX).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } } else { if (!isEmpty(getExpression())) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(StringUtils.urlEncode(getExpression())).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append(getName()); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getProcessVarName()); } else { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE); } } return sb.toString(); } Assignment();  Assignment(final AssignmentData assignmentData,
                      final String variableName,
                      final Variable.VariableType variableType,
                      final String dataType,
                      final String customDataType,
                      final String processVarName,
                      final String expression);  Assignment(final AssignmentData assignmentData,
                      final String variableName,
                      final Variable.VariableType variableType,
                      final String processVarName,
                      final String expression); String getName(); void setName(final String name); Variable.VariableType getVariableType(); void setVariableType(final Variable.VariableType variableType); Variable getVariable(); String getDataType(); void setDataType(final String dataType); String getCustomDataType(); void setCustomDataType(final String customDataType); String getProcessVarName(); void setProcessVarName(final String processVarName); String getExpression(); void setExpression(final String expression); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static Assignment deserialize(final AssignmentData assignmentData,
                                         String sAssignment); }
Assignment { @Override public String toString() { StringBuilder sb = new StringBuilder(); if (getVariableType() == Variable.VariableType.INPUT) { if (getExpression() != null && !getExpression().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append( StringUtils.urlEncode(getExpression())); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(INPUT_ASSIGNMENT_PREFIX).append(getProcessVarName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } else { sb.append(INPUT_ASSIGNMENT_PREFIX).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getName()); } } else { if (!isEmpty(getExpression())) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(StringUtils.urlEncode(getExpression())).append(ASSIGNMENT_OPERATOR_TOCONSTANT).append(getName()); } else if (getProcessVarName() != null && !getProcessVarName().isEmpty()) { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE).append(getProcessVarName()); } else { sb.append(OUTPUT_ASSIGNMENT_PREFIX).append(getName()).append(ASSIGNMENT_OPERATOR_TOVARIABLE); } } return sb.toString(); } Assignment();  Assignment(final AssignmentData assignmentData,
                      final String variableName,
                      final Variable.VariableType variableType,
                      final String dataType,
                      final String customDataType,
                      final String processVarName,
                      final String expression);  Assignment(final AssignmentData assignmentData,
                      final String variableName,
                      final Variable.VariableType variableType,
                      final String processVarName,
                      final String expression); String getName(); void setName(final String name); Variable.VariableType getVariableType(); void setVariableType(final Variable.VariableType variableType); Variable getVariable(); String getDataType(); void setDataType(final String dataType); String getCustomDataType(); void setCustomDataType(final String customDataType); String getProcessVarName(); void setProcessVarName(final String processVarName); String getExpression(); void setExpression(final String expression); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static Assignment deserialize(final AssignmentData assignmentData,
                                         String sAssignment);  }