|
Task Form generation parses your process BPMN2 and it looks as you have
some issues with it - click on the "BPMN2" button in the Designer footer and then either provide the BPMN2 shown, or the server log error(s) it generates. If you get errors, provide those, and also click on the "JSON" button in the footer and provide the JSON representation of your process. You can click on the "info" button in the Designer header to provide the Designer version you are using...that will help as well Thanks. Tihomir On 8/7/12 9:02 AM, Sadiroveski wrote: > Dear helpers, > > I designed process in drools with human tasks included, add the variables, > inputsets and bindings. > When I clicked on the "Generate Task Form Templates", to add forms I got the > following: > > ---------------------------------------------------------------------------------------- > type Exception report > > message > > description The server encountered an internal error () that prevented it > from fulfilling this request. > > exception > > java.lang.ArrayIndexOutOfBoundsException: 1 > > org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.applyTaskProperties(Bpmn2JsonUnmarshaller.java:3482) > > org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.applyProperties(Bpmn2JsonUnmarshaller.java:1921) > > org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshallItem(Bpmn2JsonUnmarshaller.java:1645) > > org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshallItem(Bpmn2JsonUnmarshaller.java:1560) > > org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshall(Bpmn2JsonUnmarshaller.java:225) > > org.jbpm.designer.bpmn2.impl.Bpmn2JsonUnmarshaller.unmarshall(Bpmn2JsonUnmarshaller.java:201) > > org.jbpm.designer.web.server.TaskFormsServlet.doPost(TaskFormsServlet.java:73) > javax.servlet.http.HttpServlet.service(HttpServlet.java:754) > javax.servlet.http.HttpServlet.service(HttpServlet.java:847) > > org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) > > note The full stack trace of the root cause is available in the JBoss > Web/7.0.1.Final logs. > ------------------------------------------------------------------------------------------- > > > Any help please, > > > > -- > View this message in context: http://drools.46999.n3.nabble.com/Error-in-Drools-when-clicking-Generate-Task-Form-Template-tp4019040.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users |
|
The issue seems to be your assignment
mapping of the task data outputs. Please note the "To" and "From"
columns in the data assignments editor:
** When you are mapping DATA INPUTS: "From" columns should have the object you are mapping from, so like process variables, globals, etc "To" columns should have the object you are mapping to, so the data input of your task ** When you are mapping DATA OUTPUTS: "From" columns should have the object you are mapping from, so your data output of your Task "To" columns should have the object you are mapping to, so like your process variables, globals, etc. I think in your case you should just switch your assignments for your task data outputs, so: ** Task 1: from Object="Approve" is mapped to "ApprovedRequest" should be from Object="ApprovedRequest" is mapped to "Approve" ** Task 2: from Object="Order" is mapped to "OrderItem" should be from Object="OrderItem" is mapped to "Order" Hope this helps. Tihomir On 8/7/12 10:06 AM, Saadi Ajam wrote:
_______________________________________________ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users |
|
Wawwwwww,
Thanks, Actually I followed the pattern of assigning variables -->> input and variables -->> output. But, it is clear i.e. variables -->> input and output -->> variables. Last question, when I build the package in drools, everything is Ok. But it is not appearing in JBPM console. I can only can see the Evaluation process. In the task properties, I assigned the Actor to Krisv. But yet nothing appears in the console. Appreciated a lot. |
|
Look at your server logs when you first click on the "Processes" tab in
console after a server start...this should give you some indication of what could have went wrong. If you have any fact models uploaded into Guvnor (like .jar files), console is not able to look them up, so you need to also make those available to the console classpath. If you are using the jBPM installer the easiest way to do this is to place your model jars in the $installer-dir/dependencies directory and run in $installer-dir ant clean.demo ant install.demo.noeclipse ant start.demo.noeclipse (remove the .noeclipse if you are actually using the eclipse that comes w/ installer :) ) Hope this helps. Tihomir On 8/7/12 11:10 AM, Sadiroveski wrote: > Wawwwwww, > Thanks, > > Actually I followed the pattern of assigning variables -->> input and > variables -->> output. > But, it is clear i.e. variables -->> input and output -->> variables. > > Last question, when I build the package in drools, everything is Ok. But it > is not appearing in JBPM console. I can only can see the Evaluation process. > In the task properties, I assigned the Actor to Krisv. But yet nothing > appears in the console. > > Appreciated a lot. > > > > > > -- > View this message in context: http://drools.46999.n3.nabble.com/Re-rules-users-Error-in-Drools-when-clicking-Generate-Task-Form-Template-tp4019041p4019044.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users |
|
Dear Tihomir,
Your reply is always helpful. Actually, I didn't add any fact model or Jar files to Drools. I didn't reach to this level yet :P What I did on Guvnor is simply design the process with variables and forms and build it. But suddenly I found the processes in JBPM console and I started one of them. But the bad news now is something unbelievable, I didn't do anything neither make any change and the processes are NOT appearing. Why? I don't know, the only one that appears now is the evaluation process. So, what is happening? sometimes shown and sometimes don't. I tried to refresh many times with no hope, also I stop the demo and restart it again, same thing. (JBPM is installed on Mysql) I just want to know if the problem from JBPM-Console or connection to drools, and does this happens usually? and does JBPM-Console a good product to put it under production environment or it is better to develop another web application for this? Best Regards Tihomir, |
|
This may not necessarily apply to you but it's worth mentioning - both
Designer, jBPM Console, and Guvnor assume by default they run on localhost:8080. If you have configured one or all to run on a different host/port you will have to make configuration changes. You can find how to do that for Guvnor and Designer here: http://docs.jboss.org/jbpm/v5.3/userguide/ch.designer.html#d0e4310 To change this default configuration in console: http://docs.jboss.org/jbpm/v5.3/userguide/ch.console.html#d0e4624. One of the things you can do is make sure that if you are not using the default configuration, you make the needed changes and make sure the three webapps can talk to eachother properly. I am not sure what version of jBPM you are using so will assume it is 5.3.0.Final; jBPM Console looks up available process definitions, and process assets first from the classpath, and then it queries Guvnor. So the Evaluation process you see console found it on the classpath as it is a process that's bundled with the console by default. When you click on the Processes tab in console, watch the logs closely, it should indicate some problems with either 1) it cannot connect to Guvnor, 2) It is unable to parse + load the bpmn2 processes, or 3) It is not even looking at the right Guvnor package your processes are located in (4) some other errors i'm not mentioning here :)) . Either way the server logs should be enough to pinpoint a possible issue. Another thing that you can do is in Guvnor go to the Administration section and go to Import/Export and export your repository (it will create a .zip file which includes a single .xml file). If you can attach this repository xml file here I will be able to possible reproduce the issue and help more. As far as your question about jBPM Console in general. I think it is a good tool. It has a lot of nice functionality like a rest api, authentication and a nice and easy to understand interface. It does have some limitations such as single session management and it's not really meant for HA/cluster scenarios..in those cases you could write your own front end to it if you wish, or contribute back to what we have now ..up to you :) Hope this helps. Tihomir On 8/7/12 6:00 PM, Sadiroveski wrote: > Dear Tihomir, > > Your reply is always helpful. Actually, I didn't add any fact model or Jar > files to Drools. I didn't reach to this level yet :P What I did on Guvnor is > simply design the process with variables and forms and build it. But > suddenly I found the processes in JBPM console and I started one of them. > But the bad news now is something unbelievable, I didn't do anything neither > make any change and the processes are NOT appearing. Why? I don't know, the > only one that appears now is the evaluation process. So, what is happening? > sometimes shown and sometimes don't. I tried to refresh many times with no > hope, also I stop the demo and restart it again, same thing. (JBPM is > installed on Mysql) > > I just want to know if the problem from JBPM-Console or connection to > drools, and does this happens usually? and does JBPM-Console a good product > to put it under production environment or it is better to develop another > web application for this? > > Best Regards Tihomir, > > > > > -- > View this message in context: http://drools.46999.n3.nabble.com/Re-rules-users-Error-in-Drools-when-clicking-Generate-Task-Form-Template-tp4019041p4019051.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > [hidden email] > https://lists.jboss.org/mailman/listinfo/rules-users _______________________________________________ rules-users mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/rules-users |
| Powered by Nabble | Edit this page |
