|
jBPM distribution 6.0.0.CR1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jbpm.compiler.xml.processes.RuleFlowMigrator
public class RuleFlowMigrator
Class the migrates drools version 4 .rfm and .rf ruleflow files to version 5 .rf and .rfm ruleflows.
Constructor Summary | |
---|---|
RuleFlowMigrator()
|
Method Summary | |
---|---|
static String |
convertReaderToString(Reader reader)
Converts the contents of the given Reader into a string. |
static void |
main(String[] args)
Test application that reads a given source file containing a drools 4 .rf and writes it to another given file location as a drools 5 .rf file. |
static boolean |
needToMigrateRF(String xml)
Returns true if the given .rf (graphical) ruleflow xml is a version 4 ruleflow that needs to be migrated to version 5, and returns false otherwise. |
static boolean |
needToMigrateRFM(String xml)
Returns true if the given .rfm ruleflow xml is a version 4 ruleflow that needs to be migrated to version 5, and returns false otherwise. |
static String |
portRFMToCurrentVersion(String xml)
Returns a drools 5 version of a given drools 4 .rfm ruleflow in string format. |
static String |
portRFToCurrentVersion(String xml)
Returns a drools 5 version of a given drools 4 .rf (Graphical) ruleflow in string format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleFlowMigrator()
Method Detail |
---|
public static String portRFToCurrentVersion(String xml) throws Exception
xml
- Drools 4 ruleflow (.rf) in xml format
Exception
public static String portRFMToCurrentVersion(String xml) throws Exception
xml
- Drools 4 ruleflow (.rfm) in xml format
Exception
public static boolean needToMigrateRF(String xml) throws Exception
xml
- a .rf ruleflow in xml format
Exception
public static boolean needToMigrateRFM(String xml) throws Exception
xml
- a .rfm ruleflow in xml format
Exception
public static String convertReaderToString(Reader reader) throws IOException
reader
-
IOException
public static final void main(String[] args)
args
- an array whose first element is the source filename and
the second element is the the destination filename to which the
transformed ruleflow is written
|
jBPM distribution 6.0.0.CR1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |