5 Replies Latest reply on Jul 9, 2015 6:04 AM by salaboy21

    how to resolve Could not parse knowledge.

    archanamadhavan

      Hi,

      I have a maven jbpm project.When i try to run the java class I am getting "Exception in thread "main" java.lang.IllegalArgumentException: Could not parse knowledge." error.

      What would be the reason.

       

      Thanks

        • 1. Re: how to resolve Could not parse knowledge.
          abhijithumbe

          Hi,

          Can you share maven project with is to replicate issue and complete stack trace ?

          • 2. Re: how to resolve Could not parse knowledge.
            archanamadhavan

            Hi Abhijit,

            That error got resolved now,There were some error with bpmn flow.

            Now I am getting other exception "Could not find work item handler for Human Task".

            Any idea? How to create work item handler? I have a user task in the bpmn flow and i did input data mapping . how to add form to the user task?

             

            Thanks

            • 3. Re: how to resolve Could not parse knowledge.
              salaboy21

              What are you doing exactly? Are you creating a KieSession manually to run a process? I recommend you to look at the jbpm services that set up the session with all the handlers needed by the processes to run. If not you will need to register  a Handler for the Human Tasks (User Task Nodes). You can do that by ksession.registerWorkItemHandler("Human Task", <your implementation of the WorkItemHandler interface here>);

               

              HTH

              • 4. Re: how to resolve Could not parse knowledge.
                archanamadhavan

                Hi,

                the bpmn flow have user task as the start node.I need user to enter details on a form and get those details to further nodes for processing.when i generated the forms, ftl got generated.but i didn't  set these files on any tasks.

                 

                I am executing the application in Eclipse.During the execution ,it throws an exception "org.drools.core.WorkItemHandlerNotFoundException: Could not find work item handler for Human Task" .


                I am totally new to jBPM and working around with simple applications.


                Please help.

                • 5. Re: how to resolve Could not parse knowledge.
                  salaboy21

                  I recommend you to take a look at the documentation or even find a book about jBPM in amazon. That will help you to get started.