org.drools.guvnor.server.contenthandler.drools
Class BPMN2ProcessHandler
java.lang.Object
org.drools.guvnor.server.contenthandler.ContentHandler
org.drools.guvnor.server.contenthandler.drools.BPMN2ProcessHandler
- All Implemented Interfaces:
- ICanHasAttachment, ICanRenderSource, ICompilable
public class BPMN2ProcessHandler
- extends ContentHandler
- implements ICompilable, ICanRenderSource, ICanHasAttachment
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BPMN2ProcessHandler
public BPMN2ProcessHandler()
retrieveAssetContent
public void retrieveAssetContent(Asset asset,
AssetItem item)
throws com.google.gwt.user.client.rpc.SerializationException
- Specified by:
retrieveAssetContent
in class ContentHandler
- Throws:
com.google.gwt.user.client.rpc.SerializationException
readProcess
protected org.jbpm.ruleflow.core.RuleFlowProcess readProcess(InputStream is)
storeAssetContent
public void storeAssetContent(Asset asset,
AssetItem repoAsset)
throws com.google.gwt.user.client.rpc.SerializationException
- Specified by:
storeAssetContent
in class ContentHandler
- Throws:
com.google.gwt.user.client.rpc.SerializationException
serialize
public static String serialize(String serializeUrl,
String modelJson)
throws IOException
- Throws:
IOException
onAttachmentAdded
public void onAttachmentAdded(AssetItem item)
throws IOException
- The BPMN2 Process can not be built if the package name is not the same as
the package that it exists in. This changes the package name.
- Specified by:
onAttachmentAdded
in interface ICanHasAttachment
- Parameters:
item
-
- Throws:
IOException
onAttachmentRemoved
public void onAttachmentRemoved(AssetItem item)
throws IOException
- Specified by:
onAttachmentRemoved
in interface ICanHasAttachment
- Throws:
IOException
compile
public void compile(BRMSPackageBuilder builder,
AssetItem asset,
AssemblyErrorLogger logger)
throws org.drools.compiler.DroolsParserException,
IOException
- Specified by:
compile
in interface ICompilable
- Throws:
org.drools.compiler.DroolsParserException
IOException
assembleSource
public void assembleSource(PortableObject assetContent,
StringBuilder stringBuilder)
- Specified by:
assembleSource
in interface ICanRenderSource
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.