org.drools.guvnor.server.contenthandler
Class BPMN2ProcessHandler
java.lang.Object
org.drools.guvnor.server.contenthandler.ContentHandler
org.drools.guvnor.server.contenthandler.BPMN2ProcessHandler
- All Implemented Interfaces:
- ICompilable
public class BPMN2ProcessHandler
- extends ContentHandler
- implements ICompilable
Method Summary |
void |
assembleProcessSource(PortableObject assetContent,
StringBuilder stringBuilder)
|
void |
compile(BRMSPackageBuilder builder,
AssetItem asset,
ContentPackageAssembler.ErrorLogger logger)
This will be called when the asset is required to compile itself,
in the context of the given builder. |
void |
compile(BRMSPackageBuilder builder,
RuleAsset asset,
ContentPackageAssembler.ErrorLogger logger)
|
protected org.jbpm.ruleflow.core.RuleFlowProcess |
readProcess(InputStream is)
|
void |
retrieveAssetContent(RuleAsset asset,
PackageItem pkg,
AssetItem item)
When loading asset content. |
void |
ruleFlowAttached(AssetItem item)
The rule flow can not be built if the package name is not the same as the
package that it exists in. |
static String |
serialize(String serializeUrl,
String modelJson)
|
void |
storeAssetContent(RuleAsset asset,
AssetItem repoAsset)
For storing the asset content back into the repo node (any changes). |
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(RuleAsset asset,
PackageItem pkg,
AssetItem item)
throws com.google.gwt.user.client.rpc.SerializationException
- Description copied from class:
ContentHandler
- When loading asset content.
- Specified by:
retrieveAssetContent
in class ContentHandler
- Parameters:
asset
- The target.item
- The source.
- Throws:
com.google.gwt.user.client.rpc.SerializationException
readProcess
protected org.jbpm.ruleflow.core.RuleFlowProcess readProcess(InputStream is)
storeAssetContent
public void storeAssetContent(RuleAsset asset,
AssetItem repoAsset)
throws com.google.gwt.user.client.rpc.SerializationException
- Description copied from class:
ContentHandler
- For storing the asset content back into the repo node (any changes).
- 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
ruleFlowAttached
public void ruleFlowAttached(AssetItem item)
- The rule flow can not be built if the package name is not the same as the
package that it exists in. This changes the package name.
- Parameters:
item
-
compile
public void compile(BRMSPackageBuilder builder,
AssetItem asset,
ContentPackageAssembler.ErrorLogger logger)
throws org.drools.compiler.DroolsParserException,
IOException
- Description copied from interface:
ICompilable
- This will be called when the asset is required to compile itself,
in the context of the given builder.
- Specified by:
compile
in interface ICompilable
- Throws:
org.drools.compiler.DroolsParserException
IOException
compile
public void compile(BRMSPackageBuilder builder,
RuleAsset asset,
ContentPackageAssembler.ErrorLogger logger)
- Specified by:
compile
in interface ICompilable
assembleProcessSource
public void assembleProcessSource(PortableObject assetContent,
StringBuilder stringBuilder)
Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.