[jBPM] New message: "Re: REST interface for JBPM"
by Alexei none
User development,
A new message was posted in the thread "REST interface for JBPM":
http://community.jboss.org/message/532760#532760
Author : Alexei none
Profile : http://community.jboss.org/people/Jump
Message:
--------------------------------------------------------------
By the way, I've shared code at Lounchpad
http://bazaar.launchpad.net/~alexei-tarnakin/+junk/jbpm-rest/files
project is not totally portable (there are still several easy to resolve dependencies in eclipse's project files), but I gonna fix it.
So, the idea is to represent JBPM as a hypermedia. For example, I got repository service at URL http://localhost:8080/jbpm-rest/repo/ and if I wanna get available process definitions, I had to acceess URL http://localhost:8080/jbpm-rest/repo/definitions. The result will be like
<definitionList>
<processDefinitions>
<id>Order-1</ns2:id>
<key>Order</ns2:key>
<name>Order</ns2:name>
<version>1</ns2:version>
<suspended>false</ns2:suspended>
<deployment ref="http://localhost:8080/jbpm-rest/repo/deployment/1"/>
</processDefinitions>
</definitionList>
as you can see, there is a hypermedia reference to another service http://localhost:8080/jbpm-rest/repo/deployment/1 . If you try to access this URL you will get something like
<deployment>
<id>1</ns2:id>
<state>active</ns2:state>
<timestamp>0</ns2:timestamp>
</deployment>
and so on. For example, task has reference to corresponding execution, execution to process definition.
Now I got 3 services (execution, repository, task) & aprox. 20 resolvable URLs. My next step will be to add remaining
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532760#532760
16 years, 4 months
[jBPM] New message: "how could i create a varaible only exist in one task?"
by qi qi
User development,
A new message was posted in the thread "how could i create a varaible only exist in one task?":
http://community.jboss.org/message/532744#532744
Author : qi qi
Profile : http://community.jboss.org/people/qiqi1982mm
Message:
--------------------------------------------------------------
In jbpm3.X ,we could define private variable and general variable ,but in jbpm4.x, i coudn't find this function.
i found there are two methods to create variable in jbpm4.x
one method:
executionService.setVariable(executionId, name, value)
two method:
taskService.setVariables(taskId, variables)
so i made a experiment,i define a workflow with two task nodes ,in task1 node, i create one variables like that:
taskService.setVariables(task1.getId(), "var1");
in task2 node,i think i shouldn't get the var1 which created in task1
but i was suprised when i user this code
taskService.getVariable(task2.getId(), "var1")
the result is i could get variable var1 in task2
so ,how could i create a variable only exist in one task ?
my spoken english is little poor,thansk all..
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532744#532744
16 years, 4 months
[JCA] New message: "Re: HornetQ RA integration"
by Tim Fox
User development,
A new message was posted in the thread "HornetQ RA integration":
http://community.jboss.org/message/532743#532743
Author : Tim Fox
Profile : http://community.jboss.org/people/timfox
Message:
--------------------------------------------------------------
Thanks Vicky,
Jeff, one workaround we could do for now:
When returning the XAResource to the applpication server via getXAResource we could actually return a thin wrapper around the real XAResource, in this thin wrapper we could maintain a flag isEnlisted which keeps track of whether the XAResource has actually been used or not.
We could then only create the real XAResource and XA session when the enlistment actually occurs.
I do believe though this should be fixed in the JCA impl as a proper solution, otherwise for one thing it means JBoss JCA impl won't work with other non JBoss JCA adaptors which don't have the "hacks" in place to workaround the current JCA impl behaviour.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532743#532743
16 years, 4 months
[JBoss Portal] New message: "Why does Portal setup with a custom login still require an entry in JBP_USERS?"
by Iain Millar
User development,
A new message was posted in the thread "Why does Portal setup with a custom login still require an entry in JBP_USERS?":
http://community.jboss.org/message/532739#532739
Author : Iain Millar
Profile : http://community.jboss.org/people/IainMillar
Message:
--------------------------------------------------------------
Hi,
I've setup JBOSS Portal to use my own authentication policy which points to my own database scheme with username and passwords.
My issue is that I still get a "HTTP Status 500 - No authenticated user" error when trying to access the dashboard (after "sucessfully" logging in with user details from the custom schema). If I put a corresponding entry in the JBP_USERS table with the same username then I can access the dashboard (the entry doesn't require a password, the username just needs to be set to allow me access).
I know that the custom authentication policy is being used successfully because even with the entry in JBP_USERS I wasn't able to access the dashbopard until I setup the "Authenticated" role for my users in the custom schema (so I know it's using the roles from that schema).
Can anyone suggest a reason why this entry is still required in JBP_USERS even thought the custom schema and authentication policy are being used? I'm assuming the portal code is taking the username from the session (after the successful login) and trying to match it to it's own database for some reason but I'm not sure why it should be doing this.
Any help would be greatly appreciated.
Iain.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532739#532739
16 years, 4 months
[jBPM] New message: "Re: How to pass values from jsp to *.jpdl.xml file"
by Anand Kumar
User development,
A new message was posted in the thread "How to pass values from jsp to *.jpdl.xml file":
http://community.jboss.org/message/532721#532721
Author : Anand Kumar
Profile : http://community.jboss.org/people/akstifr
Message:
--------------------------------------------------------------
Thank you once again for your reply
Here is the process flow file which i have created based upon requirements. But i am unable to get through it. &
<?xml version="1.0" encoding="UTF-8"?>
<process key="1" name="Work_Order" xmlns="http://jbpm.org/4.3/jpdl">
<start g="265,16,48,48" name="start" >
<transition g="-89,-7" name="to generate WON" to="Work Order Number Generate"/>
</start>
<state g="207,96,166,52" name="Work Order Number Generate">
<transition g="-111,-9" name="to Workshop Incharge" to="Workshop Incharge"/>
</state>
<decision g="264,190,48,48" name="Workshop Incharge">
<handler class="workorder.ContentEvaluation" />
<transition g="6,2" name="to Assign" to="Assign and Send Mail"/>
<transition g="-49,-18" name="to Modify" to="Modify and Re-submit"/>
<transition g="462,212:-80,-16" name="to Withdraw WO" to="Cancellation"/>
</decision>
<task assignee="nihita" g="224,285,135,52" name="Assign and Send Mail">
<transition g="116,366:-50,27" name="sending..." to="Send Mail"/>
</task>
<mail g="63,412,108,53" name="Send Mail">
<transition g="24,-15" name="to Stop" to="end1"/>
<transition g="293,437:-71,14" name="to Supervisor" to="To Update the Entries"/>
</mail>
<sub-process g="235,604,119,52" name="Complete and Mail">
<transition g="114,629:8,-22" name="sending..." to="Send Mail"/>
</sub-process>
<end g="443,402,48,48" name="end1"/>
<task g="58,288,135,52" name="Modify and Re-submit" >
<transition g="125,214:-68,-18" name="to re-submit" to="Workshop Incharge"/>
</task>
<task g="419,281,92,52" name="Cancellation">
<transition g="-40,-22" name="to stop" to="end1"/>
</task>
<task g="230,510,127,52" name="To Update the Entries">
<transition g="-52,-7" name="to update" to="Complete and Mail"/>
</task>
</process>
Can you help me where i went wrong in the above file.??
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/532721#532721
16 years, 4 months