gpt4 book ai didi

org.jbpm.process.core.impl.WorkImpl.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 21:13:05 26 4
gpt4 key购买 nike

本文整理了Java中org.jbpm.process.core.impl.WorkImpl.<init>()方法的一些代码示例,展示了WorkImpl.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkImpl.<init>()方法的具体详情如下:
包路径:org.jbpm.process.core.impl.WorkImpl
类名称:WorkImpl
方法名:<init>

WorkImpl.<init>介绍

暂无

代码示例

代码示例来源:origin: kiegroup/jbpm

public HumanTaskNodeFactory skippable(boolean skippable) {
  Work work = getHumanTaskNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getHumanTaskNode().setWork(work);
  }
  work.setParameter("Skippable", Boolean.toString(skippable));
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public Object start(final String uri,
          final String localName,
          final Attributes attrs,
          final ExtensibleXmlParser parser) throws SAXException {
  parser.startElementBuilder( localName,
                attrs );
  WorkItemNode workItemNode = (WorkItemNode) parser.getParent();
  final String name = attrs.getValue("name");
  emptyAttributeCheck(localName, "name", name, parser);
  Work work = new WorkImpl();
  work.setName(name);
  workItemNode.setWork(work);
  return work;
}

代码示例来源:origin: kiegroup/jbpm

Work work = new WorkImpl();
work.setName("StartCaseInstance");
workItemNode.setWork(work);

代码示例来源:origin: kiegroup/jbpm

Work work = new WorkImpl();
work.setName(name);
workItemNode.setWork(work);

代码示例来源:origin: kiegroup/jbpm

public WorkItemNodeFactory workName(String name) {
  Work work = getWorkItemNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getWorkItemNode().setWork(work);
  }
  work.setName(name);
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public WorkItemNodeFactory workParameterDefinition(String name, DataType dataType) {
  Work work = getWorkItemNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getWorkItemNode().setWork(work);
  }
  Set<ParameterDefinition> parameterDefinitions = work.getParameterDefinitions();
  parameterDefinitions.add(new ParameterDefinitionImpl(name, dataType));
  work.setParameterDefinitions(parameterDefinitions);
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public HumanTaskNodeFactory actorId(String actorId) {
  Work work = getHumanTaskNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getHumanTaskNode().setWork(work);
  }
  work.setParameter("ActorId", actorId);
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public HumanTaskNodeFactory workParameter(String name, Object value) {
  Work work = getHumanTaskNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getHumanTaskNode().setWork(work);
  }
  work.setParameter(name, value);
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public HumanTaskNodeFactory comment(String comment) {
  Work work = getHumanTaskNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getHumanTaskNode().setWork(work);
  }
  work.setParameter("Comment", comment);
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public WorkItemNodeFactory workParameter(String name, Object value) {
  Work work = getWorkItemNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getWorkItemNode().setWork(work);
  }
  work.setParameter(name, value);
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public HumanTaskNodeFactory taskName(String taskName) {
  Work work = getHumanTaskNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getHumanTaskNode().setWork(work);
  }
  work.setParameter("TaskName", taskName);
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public HumanTaskNodeFactory priority(String priority) {
  Work work = getHumanTaskNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getHumanTaskNode().setWork(work);
  }
  work.setParameter("Priority", priority);
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public HumanTaskNodeFactory content(String content) {
  Work work = getHumanTaskNode().getWork();
  if (work == null) {
    work = new WorkImpl();
    getHumanTaskNode().setWork(work);
  }
  work.setParameter("Content", content);
  return this;
}

代码示例来源:origin: kiegroup/jbpm

public HumanTaskNode() {
  Work work = new WorkImpl();
  work.setName("Human Task");
  Set<ParameterDefinition> parameterDefinitions = new HashSet<ParameterDefinition>();
  parameterDefinitions.add(new ParameterDefinitionImpl("TaskName", new StringDataType()));
  parameterDefinitions.add(new ParameterDefinitionImpl("ActorId", new StringDataType()));
  parameterDefinitions.add(new ParameterDefinitionImpl("Priority", new StringDataType()));
  parameterDefinitions.add(new ParameterDefinitionImpl("Comment", new StringDataType()));
  parameterDefinitions.add(new ParameterDefinitionImpl("Skippable", new StringDataType()));
  parameterDefinitions.add(new ParameterDefinitionImpl("Content", new StringDataType()));
  // TODO: initiator
  // TODO: attachments
  // TODO: deadlines
  // TODO: delegates
  // TODO: recipients
  // TODO: ...
  work.setParameterDefinitions(parameterDefinitions);
  setWork(work);
}

代码示例来源:origin: kiegroup/jbpm

public T createNode(String name) throws Exception {
  T result = this.constructor.newInstance(new Object[0]);
  result.setId(idGen++);
  result.setName(name);
  this.nodeContainer.addNode(result);
  
  if( result instanceof WorkItemNode ) { 
    Work work = new WorkImpl();
    ((WorkItemNode) result).setWork(work);
  }
  return result;
}

代码示例来源:origin: kiegroup/jbpm

public static RuleFlowProcess newProcessWithOneVariableAndOneWork(String processId, String variableName, String workName) {
  RuleFlowProcess process = new RuleFlowProcess();
  process.setId(processId);
  List<Variable> variables = new ArrayList<Variable>();
  Variable variable = new Variable();
  variable.setName(variableName);
  ObjectDataType extendingSerializableDataType = new ObjectDataType();
  extendingSerializableDataType.setClassName(Person.class.getName());
  variable.setType(extendingSerializableDataType);
  variables.add(variable);
  process.getVariableScope().setVariables(variables);
  StartNode startNode = new StartNode();
  startNode.setName( "Start" );
  startNode.setId(1);
  WorkItemNode workItemNode = new WorkItemNode();
  workItemNode.setName( "workItemNode" );
  workItemNode.setId( 2 );
  Work work = new WorkImpl();
  work.setName( workName );
  workItemNode.setWork( work );
  EndNode endNode = new EndNode();
  endNode.setName("EndNode");
  endNode.setId(4);
  connect( startNode, workItemNode );
  connect( workItemNode, endNode );
  process.addNode( startNode );
  process.addNode( workItemNode );
  process.addNode( endNode );
  return process;
}

代码示例来源:origin: kiegroup/jbpm

workItemNode.addOutMapping( "Result.length()", "Number" );
Work work = new WorkImpl();
work.setName( workName );

代码示例来源:origin: kiegroup/jbpm

workItemNode.addOutMapping( "Result.length()",
              "Number" );
Work work = new WorkImpl();
work.setName( workName );
Set<ParameterDefinition> parameterDefinitions = new HashSet<ParameterDefinition>();

代码示例来源:origin: kiegroup/jbpm

public static RuleFlowProcess newProcessWithOneWork(String processId, String workName) {
  RuleFlowProcess process = new RuleFlowProcess();
  process.setId(processId);
  StartNode startNode = new StartNode();
  startNode.setName( "Start" );
  startNode.setId(1);
  WorkItemNode workItemNode = new WorkItemNode();
  workItemNode.setName( "workItemNode" );
  workItemNode.setId( 2 );
  Work work = new WorkImpl();
  work.setName( workName );
  workItemNode.setWork( work );
  EndNode endNode = new EndNode();
  endNode.setName("EndNode");
  endNode.setId(4);
  connect( startNode, workItemNode );
  connect( workItemNode, endNode );
  process.addNode( startNode );
  process.addNode( workItemNode );
  process.addNode( endNode );
  return process;
}

代码示例来源:origin: kiegroup/jbpm

workItemNode.setName( "workItemNode" );
workItemNode.setId( 2 );
Work work = new WorkImpl();
work.setName( "MyWork" );
workItemNode.setWork( work );

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com