private boolean acceptsNoIncomingConnections(Node node) { NodeContainer nodeContainer = node.getNodeContainer(); return nodeContainer instanceof DynamicNode || (nodeContainer instanceof WorkflowProcess && ((WorkflowProcess) nodeContainer).isDynamic()); }
private boolean acceptsNoOutgoingConnections(Node node) { NodeContainer nodeContainer = node.getNodeContainer(); return nodeContainer instanceof DynamicNode || (nodeContainer instanceof WorkflowProcess && ((WorkflowProcess) nodeContainer).isDynamic()); }
protected InstanceView<ProcessInstance> getInstanceViewFor(ProcessInstance pi) { if (((WorkflowProcess)pi.getProcess()).isDynamic()) { return new CaseInstanceView(pi); } return new ProcessInstanceView(pi); }
public void nodeInstanceCompleted(NodeInstance nodeInstance, String outType) { Node nodeInstanceNode = nodeInstance.getNode(); if( nodeInstanceNode != null ) { Object compensationBoolObj = nodeInstanceNode.getMetaData().get("isForCompensation"); boolean isForCompensation = compensationBoolObj == null ? false : ((Boolean) compensationBoolObj); if( isForCompensation ) { return; } } if (nodeInstance instanceof FaultNodeInstance || nodeInstance instanceof EndNodeInstance || ((org.jbpm.workflow.core.WorkflowProcess) getWorkflowProcess()).isDynamic() || nodeInstance instanceof CompositeNodeInstance) { if (((org.jbpm.workflow.core.WorkflowProcess) getProcess()).isAutoComplete()) { if (canComplete()) { setState(ProcessInstance.STATE_COMPLETED); } } } else { throw new IllegalArgumentException( "Completing a node instance that has no outgoing connection is not supported."); } }
xmlDump.append("tns:packageName=\"" + XmlBPMNProcessDumper.replaceIllegalCharsAttribute(packageName) + "\" "); if (((org.jbpm.workflow.core.WorkflowProcess) process).isDynamic()) { xmlDump.append("tns:adHoc=\"true\" ");
if (((org.jbpm.workflow.core.WorkflowProcess) getWorkflowProcess()).isDynamic()) { for (Node node : getWorkflowProcess().getNodes()) { if (type.equals(node.getName()) && node.getIncomingConnections().isEmpty()) {
private boolean acceptsNoIncomingConnections(Node node) { NodeContainer nodeContainer = node.getNodeContainer(); return nodeContainer instanceof DynamicNode || (nodeContainer instanceof WorkflowProcess && ((WorkflowProcess) nodeContainer).isDynamic()); }
private boolean acceptsNoOutgoingConnections(Node node) { NodeContainer nodeContainer = node.getNodeContainer(); return nodeContainer instanceof DynamicNode || (nodeContainer instanceof WorkflowProcess && ((WorkflowProcess) nodeContainer).isDynamic()); }
public void nodeInstanceCompleted(NodeInstance nodeInstance, String outType) { Node nodeInstanceNode = nodeInstance.getNode(); if( nodeInstanceNode != null ) { Object compensationBoolObj = nodeInstanceNode.getMetaData().get("isForCompensation"); boolean isForCompensation = compensationBoolObj == null ? false : ((Boolean) compensationBoolObj); if( isForCompensation ) { return; } } if (nodeInstance instanceof FaultNodeInstance || nodeInstance instanceof EndNodeInstance || ((org.jbpm.workflow.core.WorkflowProcess) getWorkflowProcess()).isDynamic() || nodeInstance instanceof CompositeNodeInstance) { if (((org.jbpm.workflow.core.WorkflowProcess) getProcess()).isAutoComplete()) { if (canComplete()) { setState(ProcessInstance.STATE_COMPLETED); } } } else { throw new IllegalArgumentException( "Completing a node instance that has no outgoing connection is not supported."); } }
xmlDump.append("tns:packageName=\"" + XmlBPMNProcessDumper.replaceIllegalCharsAttribute(packageName) + "\" "); if (((org.jbpm.workflow.core.WorkflowProcess) process).isDynamic()) { xmlDump.append("tns:adHoc=\"true\" ");
if (((org.jbpm.workflow.core.WorkflowProcess) getWorkflowProcess()).isDynamic()) { for (Node node : getWorkflowProcess().getNodes()) { if (type.equals(node.getName()) && node.getIncomingConnections().isEmpty()) {