[jBPM] - From where taskClient.getTasksAssignedAsPotentialOwner(user, "en-UK", taskSummaryHandler); picks up the tasks
by Rajan Bansal
Rajan Bansal [http://community.jboss.org/people/rajan01] created the discussion
"From where taskClient.getTasksAssignedAsPotentialOwner(user, "en-UK", taskSummaryHandler); picks up the tasks"
To view the discussion, visit: http://community.jboss.org/message/628258#628258
--------------------------------------------------------------
I am running the HumanTaskService in JBoss and its persistence is done in my Oracle db.
but when I run process with "UserTasks" in it, and it successfully runs through end.
*My ques is when I call the "taskClient.getTasksAssignedAsPotentialOwner(user, "en-UK", taskSummaryHandler);"*
*then from where it picks up the data,*
*1. from session?*
*2. or from db?*
If it picks it from *session*, then please tell me how i persisted the session of the whole "ProcessInstance" in my db and picks the pending task from there.
Below is the code used to pick and complete the "UserTask".
TaskClient taskClient = new TaskClient(new MinaTaskClientConnector("MinaConnector",
new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
taskClient.connect("127.0.0.1", 9123);
BlockingTaskSummaryResponseHandler taskSummaryHandler = new BlockingTaskSummaryResponseHandler();
taskClient.getTasksAssignedAsPotentialOwner(user, "en-UK", taskSummaryHandler);
TaskSummary task1 = taskSummaryHandler.getResults().get(0);
BlockingTaskOperationResponseHandler taskOperationHandler = new BlockingTaskOperationResponseHandler();
taskClient.start(task1.getId(), user, taskOperationHandler);
taskClient.complete(task1.getId(), user, null, taskOperationHandler);
Regards.
Rajan Bansal
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/628258#628258]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[Beginner's Corner] - Unable to access a deployed HelloWorld application in JBoss 7
by freak scheme
freak scheme [http://community.jboss.org/people/frsc] created the discussion
"Unable to access a deployed HelloWorld application in JBoss 7"
To view the discussion, visit: http://community.jboss.org/message/628248#628248
--------------------------------------------------------------
Hello all,
I am a production support engineer who works on Weblogic mostly. I wanted to try JBoss and went straight for JBoss AS 7.
I got the instructions for a simple HelloWorld application from an old http://www.centerkey.com/jboss/ tutorial based on v5 and am facing an issue.
These are the steps I followed:
Created a simple *hello.jsp* file and put it in a *HelloWorld* folder.
Created a deployment descriptor and put in *WEB-INF* folder
Created a deploy script that copies the *HelloWorld.war* to the *jboss7.0.1\standalone\deployments* folder.
Started the *jboss.cmd* from the HelloWorld folder to start the application.
Once the application is started, If I try to access the application at http://localhost:8080/HelloWorld/hello.jsp http://localhost:8080/HelloWorld/hello.jsp, I get the *Internet Explorer cannot display the webpage* error.
I am able to access the Admin console at http://localhost:9990/console http://localhost:9990/console just fine, but I can't see why I am not able to access the application.
Here is the JBoss stdout:
===============================================================================
16:17:23,921 INFO [org.jboss.modules] (main) JBoss Modules version 1.0.1.GA
16:17:24,218 INFO [org.jboss.as.process.Host Controller.status] (main) Starting process 'Host Controller'
[Host Controller] 16:17:24,671 INFO [org.jboss.modules] (main) JBoss Modules version 1.0.1.GA
[Host Controller] 16:17:25,031 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.0.GA
[Host Controller] 16:17:25,421 INFO [org.jboss.remoting] (MSC service thread 1-7) JBoss Remoting version 3.2.
0.Beta2
[Host Controller] 16:17:25,437 INFO [org.xnio] (MSC service thread 1-7) XNIO Version 3.0.0.Beta3
[Host Controller] 16:17:25,453 INFO [org.xnio.nio] (MSC service thread 1-7) XNIO NIO Implementation Version 3
.0.0.Beta3
[Host Controller] 16:17:26,593 WARN [org.jboss.as] (Controller Boot Thread) No security realm defined for nat
ive management service, all access will be unrestricted.
[Host Controller] 16:17:26,593 INFO [org.jboss.as] (Controller Boot Thread) creating http management service
using network interface (management) port (9990)
[Host Controller] 16:17:26,593 WARN [org.jboss.as] (Controller Boot Thread) No security realm defined for htt
p management service, all access will be unrestricted.
[Host Controller] 16:17:26,687 INFO [org.jboss.as.remoting] (MSC service thread 1-1) Listening on /127.0.0.1:
9999
[Host Controller] 16:17:26,703 INFO [org.jboss.as.host.controller] (Controller Boot Thread) Starting server s
erver-one
16:17:26,718 INFO [org.jboss.as.process.Server:server-one.status] (ProcessController-threads - 3) Starting pr
ocess 'Server:server-one'
[Host Controller] 16:17:26,796 INFO [org.jboss.as.host.controller] (Controller Boot Thread) Starting server s
erver-two
[Server:server-one] 16:17:27,093 INFO [org.jboss.modules] (main) JBoss Modules version 1.0.1.GA
16:17:27,468 INFO [org.jboss.as.process.Server:server-two.status] (ProcessController-threads - 3) Starting pr
ocess 'Server:server-two'
[Server:server-one] 16:17:27,484 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.0.GA
[Server:server-one] 16:17:27,562 INFO [org.jboss.as] (MSC service thread 1-3) JBoss AS 7.0.1.Final "Zap" star
ting
[Server:server-two] 16:17:27,828 INFO [org.jboss.modules] (main) JBoss Modules version 1.0.1.GA
[Server:server-two] 16:17:28,218 INFO [org.jboss.msc] (main) JBoss MSC version 1.0.0.GA
[Server:server-two] 16:17:28,296 INFO [org.jboss.as] (MSC service thread 1-4) JBoss AS 7.0.1.Final "Zap" star
ting
[Server:server-one] 16:17:28,328 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-8
) The Apache Tomcat Native library which allows optimal performance in production environments was not found o
n the java.library.path: C:\Program Files\Java\jdk1.6.0_26\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\
WINDOWS;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\Java\jdk1.6.0_26\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Python27;.
[Server:server-two] 16:17:29,109 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-2
) The Apache Tomcat Native library which allows optimal performance in production environments was not found o
n the java.library.path: C:\Program Files\Java\jdk1.6.0_26\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\
WINDOWS;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\Java\jdk1.6.0_26\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Python27;.
[Server:server-two] 16:17:29,156 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Star
ting Coyote HTTP/1.1 on http--127.0.0.1-8230
When I check the console, I see that none of the servers are started; I am not sure if this is the problem.
http://i.stack.imgur.com/jIbcJ.png http://i.stack.imgur.com/jIbcJ.png
What might I have missed?
Regards,
frsc
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/628248#628248]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month