Package org.drools.bpmn2.legacy.beta1

Examples of org.drools.bpmn2.legacy.beta1.BusinessRuleTaskHandler


        RuleFlowProcess process = null;
        try {
            InputStreamReader reader = new InputStreamReader( is );
            PackageBuilderConfiguration configuration = new PackageBuilderConfiguration();
            configuration.initSemanticModules();
            configuration.addSemanticModule( new BPMNSemanticModule() );
            XmlProcessReader xmlReader = new XmlProcessReader( configuration.getSemanticModules() );
            try {
                process = (RuleFlowProcess) xmlReader.read( reader );
            } catch ( Exception e ) {
                reader.close();
View Full Code Here


        properties.putAll(buildProps);
        PackageBuilderConfiguration pkgConf = new PackageBuilderConfiguration( properties );
       
        pkgConf.setAllowMultipleNamespaces(false);
        pkgConf.setClassLoader( loader );
        pkgConf.addSemanticModule(new BPMNSemanticModule());

        return new BRMSPackageBuilder( pkgConf );

    }
View Full Code Here

            if ( process != null ) {
                String packageName = item.getPackageName();
                String originalPackageName = process.getPackageName();
                if ( !packageName.equals( originalPackageName ) ) {
                    process.setPackageName( packageName );
                    XmlBPMNProcessDumper dumper = XmlBPMNProcessDumper.INSTANCE;
                    String out = dumper.dump( process );
                    item.updateContent( out );
                    item.checkin( "Changed BPMN2 process package from " + originalPackageName + " to " + packageName );
                }
            }
        }
View Full Code Here

            if ( process != null ) {
                String packageName = item.getPackageName();
                String originalPackageName = process.getPackageName();
                if ( !packageName.equals( originalPackageName ) ) {
                    process.setPackageName( packageName );
                    XmlBPMNProcessDumper dumper = XmlBPMNProcessDumper.INSTANCE;
                    String out = dumper.dump( process );
                    item.updateContent( out );
                    item.checkin( "Changed BPMN2 process package from " + originalPackageName + " to " + packageName );
                }
            }
        }
View Full Code Here

  public BPMNDISemanticModule() {
    super("http://www.omg.org/spec/BPMN/20100524/DI");
   
    addHandler("BPMNPlane", new BPMNPlaneHandler());
    addHandler("BPMNShape", new BPMNShapeHandler());
    addHandler("BPMNEdge", new BPMNEdgeHandler());
  }
View Full Code Here

public class BPMNDISemanticModule extends DefaultSemanticModule {
 
  public BPMNDISemanticModule() {
    super("http://www.omg.org/spec/BPMN/20100524/DI");
   
    addHandler("BPMNPlane", new BPMNPlaneHandler());
    addHandler("BPMNShape", new BPMNShapeHandler());
    addHandler("BPMNEdge", new BPMNEdgeHandler());
  }
View Full Code Here

                        final Attributes attrs, final ExtensibleXmlParser parser)
            throws SAXException {
        parser.startElementBuilder(localName, attrs);
        final String elementRef = attrs.getValue("bpmnElement");
        NodeInfo nodeInfo = new NodeInfo(elementRef);
        ProcessInfo processInfo = (ProcessInfo) parser.getParent();
        processInfo.addNodeInfo(nodeInfo);
        return nodeInfo;
    }
View Full Code Here

            throws SAXException {
        parser.startElementBuilder(localName, attrs);

        final String elementRef = attrs.getValue("bpmnElement");
        ConnectionInfo info = new ConnectionInfo(elementRef);
        ProcessInfo processInfo = (ProcessInfo) parser.getParent();
        processInfo.addConnectionInfo(info);
        return info;
    }
View Full Code Here

 
  public BPMNDISemanticModule() {
    super("http://www.omg.org/spec/BPMN/20100524/DI");
   
    addHandler("BPMNPlane", new BPMNPlaneHandler());
    addHandler("BPMNShape", new BPMNShapeHandler());
    addHandler("BPMNEdge", new BPMNEdgeHandler());
  }
View Full Code Here

    public void testAdHocSubProcess() throws Exception {
    KnowledgeBuilderConfiguration conf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();
    ((PackageBuilderConfiguration) conf).initSemanticModules();
    ((PackageBuilderConfiguration) conf).addSemanticModule(new BPMNSemanticModule());
    ((PackageBuilderConfiguration) conf).addSemanticModule(new BPMNDISemanticModule());
        ((PackageBuilderConfiguration) conf).addDialect("XPath", new XPathDialectConfiguration());
    XmlProcessReader processReader = new XmlProcessReader(
          ((PackageBuilderConfiguration) conf).getSemanticModules());
    RuleFlowProcess p = (RuleFlowProcess)
        processReader.read(SimpleBPMNProcessTest.class.getResourceAsStream("/BPMN2-AdHocSubProcess.xml"));
    KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(conf);
View Full Code Here

TOP

Related Classes of org.drools.bpmn2.legacy.beta1.BusinessRuleTaskHandler

Copyright © 2018 www.massapicom. 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.