-
1. Re: argument disappear in BPM
shen_haisheng Jun 26, 2012 9:15 PM (in response to shen_haisheng)Is there anybody can help me
-
2. Re: argument disappear in BPM
dward Jun 27, 2012 9:10 AM (in response to shen_haisheng)Robbie, I downloaded your example app yesterday, but haven't had a chance to debug it yet. I will most likely be able to later today.
-
3. Re: argument disappear in BPM
shen_haisheng Jun 27, 2012 8:41 PM (in response to dward)thanks a lot David
-
4. Re: argument disappear in BPM
dward Jun 28, 2012 12:50 PM (in response to shen_haisheng)Robbie,
Sorry it took me a bit to get to this. I was not able to run your example, as there is a missing dependency, com.ac.refapp.hybris:refapp-api-hybris:1.0.1-SNAPSHOT. So, I had to just poke around and eyeball things rather than being able to actually debug it in a debugger.
A couple things you might want to try:
- Your "unfinish" switchyard service is the only one that doesn't specifcy a ticket output parameter. Again, I can't debug it with the build issue, but maybe you could add that and give it another shot?
- I noticed your screenshot looks like the old bpmn eclipse plugin. You should update to to latest version [1] as well as the latest switchyard plugin version [2], open up your bpmn2 file, right-click on the background, and click "Update". Then save and try again. A longshot, but it might make jBPM happier.
- If after doing the above 2 things don't help, please re-attach a new version of your project with a pom.xml that references a repository fulfilling all the required dependencies (including the missing one I mentioned above). I will then be able to properly debug it for you.
Thanks,
David
[1] http://download.eclipse.org/bpmn2-modeler/site/
[2] http://download.jboss.org/jbosstools/updates/nightly/soa-tooling/3.3.x/
-
5. Re: argument disappear in BPM
shen_haisheng Jun 29, 2012 5:31 AM (in response to dward)hi David
Thank you, I have already try the first step befor, but doesn't work, i saw the jbmp demo also don't have a output parameter, i don't know why
I will try the step two today, if still does't work ,i will upload com.ac.refapp.hybris:refapp-api-hybris:1.0.1-SNAPSHOT later
PS: are you an employee of jboss? you guys are so kind to spend so much time to answer every question at this community.
-
6. Re: argument disappear in BPM
shen_haisheng Jul 2, 2012 5:30 AM (in response to dward)hi david
i had tried the step two, still doesn't work.
could you also take a look for me at the last question i asked about guvnor
https://community.jboss.org/message/742776
thank you!
-
7. Re: argument disappear in BPM
shen_haisheng Jul 6, 2012 3:44 AM (in response to dward)are you still there doing some help for me ?
-
8. Re: argument disappear in BPM
kcbabo Jul 6, 2012 9:42 AM (in response to shen_haisheng)Hey Robbie,
We are a week away from the 0.5.0.Final release, so everyone is running at their limit to get the release out the door. We make every attempt to reply quickly to issues and questions, but for questions that require deeper debugging and analysis into an application the wait is going to be a bit longer.
~ keith
-
9. Re: argument disappear in BPM
dward Jul 8, 2012 11:41 AM (in response to shen_haisheng)Robbie,
I came back to this this morning and figured out what was going on. I'm going to attach a fixed project for you (refapp-jbpm-console-2.zip). I made quite a few changes for it to work for me (including path to watched Camel directory, H2 db instead of MySQL, lots of debugging printlns, etc.), however the actual problem and fix were easy:
In your process flow, your "unfinish" switchyard service task should NOT have had a result parameter of "ticket". The reason is that the method returns void, and so "null" was being set BACK into the process to fill in the "ticket" variable at the process scope. Then, your Order List Check had nothing to work with the second time around.
Thanks for your patience and sorry it took so long for me to be able to focus on it.
Best regards,
David
PS: Yes, I am JBoss (Red Hat) employee.
Message was edited by: David Ward
-
refapp-jbpm-console-2.zip 42.5 KB
-
-
10. Re: argument disappear in BPM
shen_haisheng Jul 9, 2012 3:39 AM (in response to dward)David
i don't know what's your mean
i don't know what your have changed for me to make this program work. my "unfinish" switchyard service don't have had a result parameter of "ticket", it just has a parameter mapping
have your change anything else?
thanks!
-
11. Re: argument disappear in BPM
dward Jul 10, 2012 12:53 AM (in response to shen_haisheng)Yes, as I said there were lots of things I had to change to make it work. I'm attaching a diff file that shows all the differences, but here's a re-cap of the changes:
- pom.xml: Removed unecessary property definitions and unecessary and incorrect pom and manifest dependencies.
- HelpDesk.java: Ensure getting proper task and ticket objects via storing and retrieving tickets in the map keyed by the task id, NOT the process instance id, only claim a task if the task status is ready, added refresh capability in addition to submit, added debug printlns.
- MonitorMangementServiceImpl: added debug printlns.
- OrderService.bpmn: Added <itemDefinitions/> for the tickets, graphical layout changes.
- switchyard.xml: Changed the camel binding to point to a file on my filesystem (Mac path vs. Windoze path)
- orders.xhtml: Changed view so that userTickets are keyed off of task id vs. process instance id (see #2 above), added refresh capability (see #2 above)
- tasks.xhtml: Removed unecessary Details link.
- persistence.xml (for the taskserver): Changed from mysql to h2.
Phew.
-
12. Re: argument disappear in BPM
shen_haisheng Jul 10, 2012 1:00 AM (in response to dward)hi David
thanks, i misunderstood what you said , i thougt you just change node unfinish of "orderservice.bpmn", then it works
thanks for your patience!