Examples of CustomProperty


Examples of net.sourceforge.ganttproject.CustomProperty

        imported.setMail(next.getMail());
        imported.setPhone(next.getPhone());
        imported.setRole(next.getRole());
        List/*<CustomProperty>*/ customProperties = next.getCustomProperties();
        for (int i=0; i<customProperties.size(); i++) {
          CustomProperty nextProperty = (CustomProperty) customProperties.get(i);
          imported.addCustomProperty(nextProperty.getDefinition(), nextProperty.getValueAsString());
        }
        original2imported.put(next, imported);
    }
View Full Code Here

Examples of org.activiti.bpmn.model.CustomProperty

  }

  protected String getSimpleValueFromModel() {
    String result = null;
    final CustomProperty property = ExtensionUtil.getCustomProperty(serviceTask, customPropertyId);
    if (property != null) {
      final String propertyValue = property.getSimpleValue();
      if (propertyValue != null) {
        result = propertyValue;
      }
    }
    return result;
View Full Code Here

Examples of org.activiti.bpmn.model.CustomProperty

    return result;
  }

  protected ComplexDataType getComplexValueFromModel() {
    ComplexDataType result = null;
    final CustomProperty property = ExtensionUtil.getCustomProperty(serviceTask, customPropertyId);
    if (property != null) {
      final ComplexDataType propertyValue = property.getComplexValue();
      if (propertyValue != null) {
        result = propertyValue;
      }
    }
    return result;
View Full Code Here

Examples of org.activiti.bpmn.model.CustomProperty

       * null simpleValue or complexValue to indicate which value type needs to
       * be stored.
       */
      private final void storeField(final ServiceTask task, final String key, final String simpleValue, final ComplexDataType complexValue) {

        CustomProperty property = ExtensionUtil.getCustomProperty(task, key);

        if (property == null) {
          property = new CustomProperty();
          task.getCustomProperties().add(property);
        }

        property.setId(ExtensionUtil.wrapCustomPropertyId(task, key));
        property.setName(key);
        if (simpleValue != null) {
          property.setSimpleValue(simpleValue);
        } else {
          property.setComplexValue(complexValue);
        }
      }

      public void run() {

View Full Code Here

Examples of org.activiti.bpmn.model.CustomProperty

            if (targetTask != null) {
              serviceTask.setImplementationType(ImplementationType.IMPLEMENTATION_TYPE_CLASS);
              serviceTask.setImplementation(targetTask.getRuntimeClassname());
              for (FieldExtension field : serviceTask.getFieldExtensions()) {
                CustomProperty customFieldProperty = new CustomProperty();
                customFieldProperty.setName(field.getFieldName());
                if (StringUtils.isNotEmpty(field.getExpression())) {
                  customFieldProperty.setSimpleValue(field.getExpression());
                } else {
                  customFieldProperty.setSimpleValue(field.getStringValue());
                }
                serviceTask.getCustomProperties().add(customFieldProperty);
              }

              serviceTask.getFieldExtensions().clear();
View Full Code Here

Examples of org.activiti.bpmn.model.CustomProperty

   * @param propertyName
   *          the name of the property
   * @return the {@link CustomProperty} found or null if no property was found
   */
  public static final CustomProperty getCustomProperty(final ServiceTask serviceTask, final String propertyName) {
    CustomProperty result = null;
    for (final CustomProperty customProperty : serviceTask.getCustomProperties()) {
      if (propertyName.equals(customProperty.getName())) {
        result = customProperty;
        break;
      }
View Full Code Here

Examples of org.activiti.bpmn.model.CustomProperty

    for (FieldExtension extension : original.getFieldExtensions()) {
      result.getFieldExtensions().add(clone(extension));
    }
   
    for (CustomProperty property : original.getCustomProperties()) {
      final CustomProperty clone = clone(property);
      // Reset the id
      clone.setId(ExtensionUtil.wrapCustomPropertyId(result, ExtensionUtil.upWrapCustomPropertyId(clone.getId())));
      result.getCustomProperties().add(clone);
    }

    return result;
  }
View Full Code Here

Examples of org.activiti.bpmn.model.CustomProperty

   * @param original
   *          the object to clone
   * @return a clone of the original object
   */
  private static final CustomProperty clone(final CustomProperty original) {
    CustomProperty result = new CustomProperty();
    result.setId(original.getId());
    if (original.getComplexValue() != null) {
      result.setComplexValue(clone(original.getComplexValue()));
    }
    result.setName(original.getName());
    result.setSimpleValue(original.getSimpleValue());
    return result;
  }
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.CustomProperty

               
                if ( customProps != null )
                {
                    for ( int j = 0; j < customProps.length; j++ )
                    {
                        CustomProperty customProp = customProps[j];
                        config.addCustomProperty( customProp.getName(), customProp.getValue() );
                    }
                }
               
                addInterceptor( config, baseClassOrInterface, interceptorsList );
            }
View Full Code Here

Examples of org.apache.beehive.netui.util.config.bean.CustomProperty

                {
                    HandlerConfig config = new HandlerConfig( handlerClass );
                   
                    for ( int j = 0; j < props.length; j++ )
                    {
                        CustomProperty prop = props[j];
                        config.addCustomProperty( prop.getName(), prop.getValue() );
                    }
                   
                    handler.init( config, retVal, servletContext );
                    retVal = handler;
                }
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.