当前位置: 首页>>代码示例>>Java>>正文


Java FixedValue类代码示例

本文整理汇总了Java中org.activiti.engine.impl.el.FixedValue的典型用法代码示例。如果您正苦于以下问题:Java FixedValue类的具体用法?Java FixedValue怎么用?Java FixedValue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FixedValue类属于org.activiti.engine.impl.el包,在下文中一共展示了FixedValue类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: validateFieldDeclarationsForShell

import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
protected void validateFieldDeclarationsForShell(Element serviceTaskElement, List<FieldDeclaration> fieldDeclarations) {
  boolean shellCommandDefined = false;

  for (FieldDeclaration fieldDeclaration : fieldDeclarations) {
    String fieldName = fieldDeclaration.getName();
    FixedValue fieldFixedValue = (FixedValue) fieldDeclaration.getValue();
    String fieldValue = fieldFixedValue.getExpressionText();

    shellCommandDefined |= fieldName.equals("command");

    if ((fieldName.equals("wait") || fieldName.equals("redirectError") || fieldName.equals("cleanEnv")) && !fieldValue.toLowerCase().equals("true")
            && !fieldValue.toLowerCase().equals("false")) {
      addError("undefined value for shell " + fieldName + " parameter :" + fieldValue.toString(), serviceTaskElement);
    }

  }

  if (!shellCommandDefined) {
    addError("No shell command is defined on the shell activity", serviceTaskElement);
  }
}
 
开发者ID:iotsap,项目名称:FiWare-Template-Handler,代码行数:22,代码来源:BpmnParse.java

示例2: parseStringFieldDeclaration

import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
protected FieldDeclaration parseStringFieldDeclaration(Element fieldDeclarationElement, Element serviceTaskElement, String fieldName) {
  try {
    String fieldValue = getStringValueFromAttributeOrElement("stringValue", "string", fieldDeclarationElement);
    if (fieldValue != null) {
      return new FieldDeclaration(fieldName, Expression.class.getName(), new FixedValue(fieldValue));
    }
  } catch (ActivitiException ae) {
    if (ae.getMessage().contains("multiple elements with tag name")) {
      addError("Multiple string field declarations found", serviceTaskElement);
    } else {
      addError("Error when paring field declarations: " + ae.getMessage(), serviceTaskElement);
    }
  }
  return null;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:16,代码来源:BpmnParse.java

示例3: createNoOpServiceTask

import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
private ClassDelegate createNoOpServiceTask(ServiceTask serviceTask) {
    List<FieldDeclaration> fieldDeclarations = new ArrayList<FieldDeclaration>();
    fieldDeclarations.add(new FieldDeclaration("name",
            Expression.class.getName(), new FixedValue(serviceTask.getImplementation())));
    return new ClassDelegate(NoOpServiceTask.class, fieldDeclarations);
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:7,代码来源:TestActivityBehaviorFactory.java

示例4: getSomeField

import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
public FixedValue getSomeField() {
    return someField;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:4,代码来源:MyTaskListenerBean.java

示例5: setSomeField

import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
public void setSomeField(FixedValue someField) {
    this.someField = someField;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:4,代码来源:MyTaskListenerBean.java

示例6: getSomeField

import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
public FixedValue getSomeField() {
  return someField;
}
 
开发者ID:joshlong,项目名称:javaconfig-ftw,代码行数:4,代码来源:MyTaskListenerBean.java

示例7: setSomeField

import org.activiti.engine.impl.el.FixedValue; //导入依赖的package包/类
public void setSomeField(FixedValue someField) {
  this.someField = someField;
}
 
开发者ID:joshlong,项目名称:javaconfig-ftw,代码行数:4,代码来源:MyTaskListenerBean.java


注:本文中的org.activiti.engine.impl.el.FixedValue类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。