- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.kie.api.definition.process.WorkflowProcess.getNodes()
方法的一些代码示例,展示了WorkflowProcess.getNodes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkflowProcess.getNodes()
方法的具体详情如下:
包路径:org.kie.api.definition.process.WorkflowProcess
类名称:WorkflowProcess
方法名:getNodes
暂无
代码示例来源:origin: kiegroup/jbpm
private void visitNodes(WorkflowProcess process, StringBuilder xmlDump, boolean includeMeta) {
xmlDump.append(" <nodes>" + EOL);
for (Node node: process.getNodes()) {
visitNode(node, xmlDump, includeMeta);
}
xmlDump.append(" </nodes>" + EOL + EOL);
}
代码示例来源:origin: kiegroup/jbpm
private void unregisterExternalEventNodeListeners() {
for (Node node : getWorkflowProcess().getNodes()) {
if (node instanceof EventNode) {
if ("external".equals(((EventNode) node).getScope())) {
externalEventListeners.remove(((EventNode) node).getType());
}
}
}
}
代码示例来源:origin: kiegroup/jbpm
public void buildNodes(WorkflowProcess process, ProcessBuildContext context) {
processNodes(process.getNodes(), process, context.getProcessDescr(), context);
if ( !context.getErrors().isEmpty() ) {
this.errors.addAll( context.getErrors() );
}
ProcessDialectRegistry.getDialect(JavaDialect.ID).addProcess( context );
}
代码示例来源:origin: kiegroup/jbpm
from = getNodeId(((WorkflowProcess) processFrom).getNodes(), entry.getKey(), true);
} else if (processFrom instanceof RuleFlowProcess) {
from = getNodeId(((RuleFlowProcess) processFrom).getNodes(), entry.getKey(), true);
to = Long.valueOf(getNodeId(((WorkflowProcess) processTo).getNodes(), entry.getValue(), false));
} else if (processTo instanceof RuleFlowProcess) {
to = Long.valueOf(getNodeId(((RuleFlowProcess) processTo).getNodes(), entry.getValue(), false));
代码示例来源:origin: kiegroup/jbpm
visitHeader(process, xmlDump, includeMeta);
visitNodes(process, xmlDump, includeMeta);
visitConnections(process.getNodes(), xmlDump, includeMeta);
xmlDump.append("</process>");
代码示例来源:origin: kiegroup/jbpm
visitSubVariableScopes(process.getNodes(), xmlDump, dumpedItemDefs);
visitInterfaces(process.getNodes(), xmlDump);
visitEscalations(process.getNodes(), xmlDump, new ArrayList<String>());
Definitions def = (Definitions) process.getMetaData().get("Definitions");
visitErrors(def, xmlDump);
for( Node procNode : process.getNodes()) {
processNodes.add((org.jbpm.workflow.core.Node) procNode);
visitConnections(process.getNodes(), xmlDump, metaDataType);
" <bpmndi:BPMNDiagram>" + EOL +
" <bpmndi:BPMNPlane bpmnElement=\"" + XmlBPMNProcessDumper.replaceIllegalCharsAttribute(process.getId()) + "\" >" + EOL);
visitNodesDi(process.getNodes(), xmlDump);
visitConnectionsDi(process.getNodes(), xmlDump);
xmlDump.append(
" </bpmndi:BPMNPlane>" + EOL +
代码示例来源:origin: kiegroup/jbpm
for (Node node : getWorkflowProcess().getNodes()) {
if (node instanceof EventNodeInterface) {
if (((EventNodeInterface) node).acceptsEvent(type, event, getResolver(node, type, currentView))) {
for (Node node : getWorkflowProcess().getNodes()) {
if (type.equals(node.getName()) && node.getIncomingConnections().isEmpty()) {
NodeInstance nodeInstance = getNodeInstance(node);
代码示例来源:origin: kiegroup/jbpm
private void registerExternalEventNodeListeners() {
for (Node node : getWorkflowProcess().getNodes()) {
if (node instanceof EventNode) {
if ("external".equals(((EventNode) node).getScope())) {
addEventListener(((EventNode) node).getType(), EMPTY_EVENT_LISTENER, true);
}
} else if (node instanceof EventSubProcessNode) {
List<String> events = ((EventSubProcessNode) node).getEvents();
for (String type : events) {
addEventListener(type, EMPTY_EVENT_LISTENER, true);
if (isVariableExpression(type)) {
addEventListener(resolveVariable(type), EMPTY_EVENT_LISTENER, true);
}
}
} else if (node instanceof DynamicNode) {
if (((DynamicNode) node).getActivationEventName() != null) {
addEventListener(((DynamicNode) node).getActivationEventName(), EMPTY_EVENT_LISTENER, true);
}
}
}
if( getWorkflowProcess().getMetaData().containsKey("Compensation") ) {
addEventListener("Compensation", new CompensationEventListener(this), true);
}
}
代码示例来源:origin: org.jbpm/jbpm-flow-builder
private void visitNodes(WorkflowProcess process, StringBuilder xmlDump, boolean includeMeta) {
xmlDump.append(" <nodes>" + EOL);
for (Node node: process.getNodes()) {
visitNode(node, xmlDump, includeMeta);
}
xmlDump.append(" </nodes>" + EOL + EOL);
}
代码示例来源:origin: org.jbpm/jbpm-flow
private void unregisterExternalEventNodeListeners() {
for (Node node : getWorkflowProcess().getNodes()) {
if (node instanceof EventNode) {
if ("external".equals(((EventNode) node).getScope())) {
externalEventListeners.remove(((EventNode) node).getType());
}
}
}
}
代码示例来源:origin: org.jbpm/jbpm-flow-builder
public void buildNodes(WorkflowProcess process, ProcessBuildContext context) {
processNodes(process.getNodes(), process, context.getProcessDescr(), context);
if ( !context.getErrors().isEmpty() ) {
this.errors.addAll( context.getErrors() );
}
ProcessDialectRegistry.getDialect(JavaDialect.ID).addProcess( context );
}
代码示例来源:origin: stackoverflow.com
public static Map<ConnectionRef, Constraint> getNextGatewayConstraints(final StatefulKnowledgeSession inSession,
final WorkflowProcessInstanceImpl inInstance,
final Node inTaskNode) {
final Map<ConnectionRef, Constraint> constraints = new HashMap<>();
final WorkflowProcess process = (WorkflowProcess) inSession.getKnowledgeBase().getProcess(inInstance.getProcessId());
for (Node node : process.getNodes()) {
if (!node.equals(inTaskNode)) {
continue;
}
final List<Connection> nodeConnections = node.getOutgoingConnections(org.jbpm.workflow.core.Node.CONNECTION_DEFAULT_TYPE);
if (nodeConnections != null && !nodeConnections.isEmpty()) {
for (Connection c : nodeConnections) {
final Node nextNode = c.getTo();
if (nextNode instanceof Split) {
constraints.putAll(((Split) nextNode).getConstraints());
return constraints;
}
}
}
break;
}
return constraints;
}
代码示例来源:origin: org.jbpm/jbpm-flow
from = getNodeId(((WorkflowProcess) processFrom).getNodes(), entry.getKey(), true);
} else if (processFrom instanceof RuleFlowProcess) {
from = getNodeId(((RuleFlowProcess) processFrom).getNodes(), entry.getKey(), true);
to = Long.valueOf(getNodeId(((WorkflowProcess) processTo).getNodes(), entry.getValue(), false));
} else if (processTo instanceof RuleFlowProcess) {
to = Long.valueOf(getNodeId(((RuleFlowProcess) processTo).getNodes(), entry.getValue(), false));
代码示例来源:origin: org.jbpm/jbpm-flow-builder
visitHeader(process, xmlDump, includeMeta);
visitNodes(process, xmlDump, includeMeta);
visitConnections(process.getNodes(), xmlDump, includeMeta);
xmlDump.append("</process>");
代码示例来源:origin: org.jbpm/jbpm-bpmn2
visitSubVariableScopes(process.getNodes(), xmlDump, dumpedItemDefs);
visitInterfaces(process.getNodes(), xmlDump);
visitEscalations(process.getNodes(), xmlDump, new ArrayList<String>());
Definitions def = (Definitions) process.getMetaData().get("Definitions");
visitErrors(def, xmlDump);
for( Node procNode : process.getNodes()) {
processNodes.add((org.jbpm.workflow.core.Node) procNode);
visitConnections(process.getNodes(), xmlDump, metaDataType);
" <bpmndi:BPMNDiagram>" + EOL +
" <bpmndi:BPMNPlane bpmnElement=\"" + XmlBPMNProcessDumper.replaceIllegalCharsAttribute(process.getId()) + "\" >" + EOL);
visitNodesDi(process.getNodes(), xmlDump);
visitConnectionsDi(process.getNodes(), xmlDump);
xmlDump.append(
" </bpmndi:BPMNPlane>" + EOL +
代码示例来源:origin: stackoverflow.com
public static List<Node> getProcessActiveNodeList(final StatefulKnowledgeSession inSession,
final WorkflowProcessInstanceImpl inInstance) {
final List<Node> nodes = new ArrayList<>();
final WorkflowProcess process = (WorkflowProcess) inSession.getKnowledgeBase().getProcess(inInstance.getProcessId());
for (Node node : process.getNodes()) {
if (node instanceof EventNode && ((EventNode) node).getFrom() == null) {
// a free-standing event, without an entry point; this would be a start of an "optional" branch
nodes.add(node);
} else {
// a node that has an inbound connection; all nodes on the main branch are of this kind
List<NodeInstance> nodeInstances = inInstance.getNodeInstances(node.getId());
if (nodeInstances != null && !nodeInstances.isEmpty()) {
for (NodeInstance nodeInstance : nodeInstances) {
Node nodeInstanceNode = process.getNode(nodeInstance.getNodeId());
nodes.add(0, nodeInstanceNode);
}
}
}
}
return nodes;
}
代码示例来源:origin: org.jbpm/jbpm-flow
for (Node node : getWorkflowProcess().getNodes()) {
if (node instanceof EventNodeInterface) {
if (((EventNodeInterface) node).acceptsEvent(type, event, getResolver(node, type, currentView))) {
for (Node node : getWorkflowProcess().getNodes()) {
if (type.equals(node.getName()) && node.getIncomingConnections().isEmpty()) {
NodeInstance nodeInstance = getNodeInstance(node);
代码示例来源:origin: org.jbpm/jbpm-flow
private void registerExternalEventNodeListeners() {
for (Node node : getWorkflowProcess().getNodes()) {
if (node instanceof EventNode) {
if ("external".equals(((EventNode) node).getScope())) {
addEventListener(((EventNode) node).getType(), EMPTY_EVENT_LISTENER, true);
}
} else if (node instanceof EventSubProcessNode) {
List<String> events = ((EventSubProcessNode) node).getEvents();
for (String type : events) {
addEventListener(type, EMPTY_EVENT_LISTENER, true);
if (isVariableExpression(type)) {
addEventListener(resolveVariable(type), EMPTY_EVENT_LISTENER, true);
}
}
} else if (node instanceof DynamicNode) {
if (((DynamicNode) node).getActivationEventName() != null) {
addEventListener(((DynamicNode) node).getActivationEventName(), EMPTY_EVENT_LISTENER, true);
}
}
}
if( getWorkflowProcess().getMetaData().containsKey("Compensation") ) {
addEventListener("Compensation", new CompensationEventListener(this), true);
}
}
我有一个令人费解的问题。我会尽力解释。我正在开发基于 JCR 和 Java 的 Adobe CQ 代码库。 我有一个像这样的 Java ArrayList 声明: ArrayList> list6
我试图找到一些我可以用作我的脚本的唯一字符串/数字的东西,它固定在机器上并且很容易获得(跨平台)。我假设一台机器会有网卡。我不需要它真的很独特,但必要的是它应该长期固定并且尽可能少见。 我知道 MAC
我尝试获取 XYChart.Data 的节点,但它为空。 var a = new XYChart.Data(10, 10); if(a.getNode()==null){ System.out.pri
本文整理了Java中javax.xml.xquery.XQItem.getNode()方法的一些代码示例,展示了XQItem.getNode()的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeNetworkManager.getNode()方法的一些代码示例,展示了ZigBeeNetworkManager.g
本文整理了Java中com.zsmartsystems.zigbee.ZigBeeNetworkManager.getNodes()方法的一些代码示例,展示了ZigBeeNetworkManager.
我正在尝试 add a comment到 JAXB 生成的 XML @GET 结果,这似乎不是一项直接的任务。我正在使用 Spring,并且 I don't have direct access to
本文整理了Java中org.hippoecm.addon.workflow.WorkflowDescriptorModel.getNode()方法的一些代码示例,展示了WorkflowDescript
本文整理了Java中org.apache.zookeeper.server.ZKDatabase.getNode()方法的一些代码示例,展示了ZKDatabase.getNode()的具体用法。这些代
本文整理了Java中com.sk89q.util.yaml.YAMLNode.getNode()方法的一些代码示例,展示了YAMLNode.getNode()的具体用法。这些代码示例主要来源于Gith
本文整理了Java中co.cask.cdap.api.workflow.WorkflowSpecification.getNodes()方法的一些代码示例,展示了WorkflowSpecificati
本文整理了Java中org.kie.api.definition.process.WorkflowProcess.getNodes()方法的一些代码示例,展示了WorkflowProcess.getN
本文整理了Java中com.zsmartsystems.zigbee.app.discovery.ZigBeeNodeServiceDiscoverer.getNode()方法的一些代码示例,展示了Z
本文整理了Java中com.spotify.helios.servicescommon.coordination.ZooKeeperClient.getNode()方法的一些代码示例,展示了ZooKe
今天警告我的 React Native 在我没有收到任何警告之前更新到 0.62。 调用 getNode()不再需要在 Animated 组件的 ref 上。您现在可以直接使用 ref 代替。此方法将
我试图在遍历我的 DFS 堆栈时尽可能快地运行此代码,目前输入文件如下所示: 0 2 2 1 1 4 4 5 5 6 10 8 8 9 9 6 7 6 3 4 0 1 3 9 0 4 我的 Maze
本文整理了Java中com.ibm.wala.ipa.callgraph.propagation.ZeroLengthArrayInNode.getNode()方法的一些代码示例,展示了ZeroLen
本文整理了Java中com.github.ltsopensource.core.registry.zookeeper.ZookeeperRegistry.getNode()方法的一些代码示例,展示了Z
我可能是盲人,但我找不到我在许多节点实现中看到的功能的文档,因为有: RED.nodes.createNode() RED.nodes.getNode() RED.nodes.eachNode() R
正在学习 Gatsby 官方教程 here 。直到第 7 步,一切都 100% 正常。在第 7 步“以编程方式从数据创建页面”中,为 gatsby-node.js 列出了此代码段(按原样,不导入):
我是一名优秀的程序员,十分优秀!