Search code examples
droolsbpmn

How to convert Drools rule drl to Drools Workflow bpmn


I am new user to Drools rule language. Can I convert Drools rule file .drl to Drools workflow diagram .bpmn? Here is some pieces of rule for my drools rule file.

rule "classNameDeclaration"

when
     $st : SyntaxTree( status == SyntaxTree.CLASS_DECLARE )
then

    TypeDeclaration type=AST2Android.classNameDeclaration($st.getClassName());

    $st.setStatus(SyntaxTree.VARIABLE_DECLARE);
    $st.setType(type);
    update($st);
end

Solution

  • You can't. Drools is a production rule framework and bmpn is a way to express a business process. Even when these 2 technologies can be used together (and sometimes for similar purposes), that doesn't mean that you can translate from one to the other.

    Hope it helps,