Package org.activiti.workflow.simple.alfresco.model

Examples of org.activiti.workflow.simple.alfresco.model.M2NamedValue


     
      List<String> values = new ArrayList<String>(def.getTransitions().size());
      for(ListPropertyEntry entry : def.getTransitions()) {
        values.add(entry.getValue());
      }
      valueConstraint.getParameters().add(new M2NamedValue(AlfrescoConversionConstants.CONTENT_MODEL_CONSTRAINT_ALLOWED_VALUES, null, values));
     
      // Add constraint to the root model instead of the type itself and reference it from within the property
      // for readability and reuse of the model
      model.getConstraints().add(valueConstraint);
     
View Full Code Here


      List<String> values = new ArrayList<String>(dateDefinition.getEntries().size());
      for(ListPropertyEntry entry : dateDefinition.getEntries()) {
        // TODO: i18n file using labels in properties-file, a part of deployment?
        values.add(entry.getValue());
      }
      valueConstraint.getParameters().add(new M2NamedValue(AlfrescoConversionConstants.CONTENT_MODEL_CONSTRAINT_ALLOWED_VALUES, null, values));
     
      // Add constraint to the root model instead of the type itself and reference it from within the property
      // for readability and reuse of the model
      model.getConstraints().add(valueConstraint);
     
View Full Code Here

TOP

Related Classes of org.activiti.workflow.simple.alfresco.model.M2NamedValue

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.