[jBPM] - Re: JBPM 5.4 Human task connected by HornetQ
by Nicolas Louis
Nicolas Louis [https://community.jboss.org/people/nicols] created the discussion
"Re: JBPM 5.4 Human task connected by HornetQ"
To view the discussion, visit: https://community.jboss.org/message/819003#819003
--------------------------------------------------------------
Hi Clebert,
Sorry, I'm a little bit confused, maybe i haven't explain correctly my problem.
I would like to use JBPM in cluster, with human task, so i have to use an implementation like Mina or HornetQ to transport my information, is it correct ?
In the jbpm example, i see a new instance of HornetQ like this : new HornetQTaskServer(taskService, "127.0.0.1", 5445)
But i don't see how i can connect directly to my JMS queue (HornetQ) of jboss?
Thanks,
Nicolas.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/819003#819003]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 11 months
[JBoss Web Services] - Invocation of a Web service using invokeAsync calls invoke method
by Edin Joselyn
Edin Joselyn [https://community.jboss.org/people/edinsamuel] created the discussion
"Invocation of a Web service using invokeAsync calls invoke method"
To view the discussion, visit: https://community.jboss.org/message/818959#818959
--------------------------------------------------------------
Hi,
I have an issue with my client in JBoss calling a web service defined in Adobe Life cycle. I want to call the invokeAsync method from my client and I'm using the following code to call the invokeAsync method in the web service.
ARDocsImportProcessesCiderSend8130Service service = new ARDocsImportProcessesCiderSend8130Service();
ARDocsImportProcessesCiderSend8130 port = service.getSend8130();
String pid = port.invokeAsync(document, metadata);
But, eventually, the JBoss JAX-WS internally calls the invoke method instead and I get the exception *"Exception: ALC-DSC-127-000: com.adobe.idp.dsc.LongLivedInvocationException: The Long Lived Service ARDocsImport/Processes/Cider/Send8130 can not be invoked synchronously"*
I'm able to call the invokeAsync method in the web service using a standalone program, but when I'm doing it from within JBoss I'm getting the error as it is internally calling the invoke method, instead of the invokeAsync method. I'm using JBoss 5.0.0.*
*
I've also attached the WSDL file. I generated the proxy classes using the wsimport command available in jdk 1.6.
Please let me know if I'm missing something or something else needs to be done.
Thanks,
Edin.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/818959#818959]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 11 months
[jBPM] - Created workflow definition programmatically - How to assign variables to switch on SplitNode?
by pras mn
pras mn [https://community.jboss.org/people/bloreguy] created the discussion
"Created workflow definition programmatically - How to assign variables to switch on SplitNode?"
To view the discussion, visit: https://community.jboss.org/message/818953#818953
--------------------------------------------------------------
I am creating a workflow definition programmatically and am able to invoke the workflow and execute any action nodes and work item nodes ( which in turn calls a WorkItemHandler). However I am stuck in transitioning outaide of a SplitNode.
I have a HumanTaskNode assigned to a user. When the user approves or rejects an order, I have a split node which will redirect to 2 different nodes. The constraint I have added for the SplitNode is as follows:
SplitFactory splitFactory = factory.splitNode( 1000)
.type(Split.TYPE_XOR)
.name("SplitNode");
splitFactory.constraint(2000, "orderApproved?", "code","java","return !orderApproved").done();
splitFactory.constraint(2500, "orderApproved?", "code","java","return orderApproved).done();
My question is how do we set the value of orderApproved at runtime so that the SplitNode can redirect to either node 2000 or node 2500? Should it be done in a WorkItemHandler? If So, what needs to be passed in to the workitem handler and how to read the value of the orderApproved back ?
I receive the value of the orderApproved via a web service call and need to assign it to the process variable "orderApproved". Any assistance with code samples or pointers will be greatly appreciated
orderApproved is declared earlier as
factory
.name("name")
.packageName(workflow.getName("name")
.variable("orderApproved",new ObjectDataType(Boolean.class.getCanonicalName()))
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/818953#818953]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
10 years, 11 months