Discussion:
[jboss-user] [jBPM] - JBPM HUMAN TASK, TASK SERVER
RSTVMA LDHYAGF
2012-07-05 09:36:45 UTC
Permalink
RSTVMA LDHYAGF [https://community.jboss.org/people/mab1990.amu] created the discussion

"JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/746278#746278

--------------------------------------------------------------
Hello,

can someone please help me with this: I created my JBPM project with some human task in but when i try to run it this error pops out:

| 0 | 05/07 11:17:53,531[main] ERROR workitem.wsht.GenericHTWorkItemHandler.executeWorkItem  -
Thu Jul 05 11:17:53 WAT 2012: Error when creating task on task server for work item id 1. Error reported by task server: Task operation request timed out |
java.lang.RuntimeException: Task operation request timed out
| | at org.jbpm.task.service.SyncTaskServiceWrapper.addTask(SyncTaskServiceWrapper.java:118) |
| | at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:145) |
| | at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70) |
| | at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164) |
| | at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49) |
| | at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41) |
| | at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124) |
| | at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35) |
| | at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188) |
| | at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303) |
| | at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168) |
| | at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138) |
| | at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1082) |
| | at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:320) |
| | at com.principal.PrincipalProcess.main(PrincipalProcess.java:30) |
Process Started..........

I don't know if i have to set something in order to connect to the server, because i have set the IpAddress and the port but still from the localhost:8080/jbpm-console i can't see my processes i only see the evaluation.bpmn that i got from the jbpm-installer folder
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/746278#746278]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Mauricio Salatino
2012-07-05 09:49:31 UTC
Permalink
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/746281#746281

--------------------------------------------------------------
So, what are you trying to achieve?
In order to register a WorkItemHandler against a Task Server you need to know where your task service is.
Did you start an instance of a task server?
Cheers
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/746281#746281]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
RSTVMA LDHYAGF
2012-07-05 10:55:29 UTC
Permalink
RSTVMA LDHYAGF [https://community.jboss.org/people/mab1990.amu] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/746300#746300

--------------------------------------------------------------
Hello,

I want to assing task for the Principal like, When the student registers to our database, the student must select the school that he/she wish to attend to; so the principal of that particular school must add or Approve the student.

Yes i have started the instance process, but i cant see my processes in the localhost

Thanx for the reply
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/746300#746300]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Mauricio Salatino
2012-07-05 11:22:27 UTC
Permalink
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/746305#746305

--------------------------------------------------------------
You will need to share more information with us you want our help.
localhost? are you using the jBPM Console? are you using eclipse? are you creating your own application embeding jBPM5 in it? Can you describe the components that you are using?
Cheers
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/746305#746305]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Vadim Romanenko
2012-07-17 10:58:33 UTC
Permalink
Vadim Romanenko [https://community.jboss.org/people/vadro] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/748426#748426

--------------------------------------------------------------
Hello, Mauricio!
  I've got the same problem. And I can share some info about problem:
- I'm using jbpm-5.3.0.Final-installer with example "Evaluation" on localhost
- I've added additional business process, called "test.bpmn2", added additional java-class "ProcessTest_debtOff", like "ProcessTest" from example
- I've got exception like https://community.jboss.org/people/mab1990.amu RSTVMA LDHYAGF, when I tried to start my test process from java class.

Java code and BPMN-style process are in attached files.

Thank You for your help
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/748426#748426]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
jamuna sridhar
2012-07-17 11:11:11 UTC
Permalink
jamuna sridhar [https://community.jboss.org/people/jamunas] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/748429#748429

--------------------------------------------------------------
Hi,
Have you built the package in guvnor drools? or using API to deploy the package.

Regards,
Jamuna S
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/748429#748429]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Vadim Romanenko
2012-07-17 11:27:38 UTC
Permalink
Vadim Romanenko [https://community.jboss.org/people/vadro] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/748437#748437

--------------------------------------------------------------
No, I didn't use guvnor drools - I think that i'm using local resource. Am I right? Or I need to add my process to Drools Guvnor repository?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/748437#748437]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Vadim Romanenko
2012-07-17 12:44:45 UTC
Permalink
Vadim Romanenko [https://community.jboss.org/people/vadro] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/748469#748469

--------------------------------------------------------------
Some additional info.
I tried to start my test process. First try was successful. Then I tried to start this process after small edit. I've got an exception - Eclipse can't get rewrite process file in BIN folder. In Google i find advice - to push "Project/Clean". After that, problem with rewriting was gone. But I've got problem, described in start post.
Maybe I can provide You some additional info? Please, feel free to ask questions...
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/748469#748469]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Vadim Romanenko
2012-07-17 12:58:34 UTC
Permalink
Vadim Romanenko [https://community.jboss.org/people/vadro] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/748474#748474

--------------------------------------------------------------
Hmmm.. Problem was gone. I just modified source of the Scipt Action - added one more line: System.out.println("Hello world-2");
That's all... Looks like a bug, isn't it?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/748474#748474]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
swexican
2012-07-26 10:08:19 UTC
Permalink
swexican [https://community.jboss.org/people/swexican] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/750417#750417

--------------------------------------------------------------
I'm running the latest JBPM Demo setup (jbpm 5.3.0 Final), following the first tutorial (Evaluation sample) in the user guide (Using the Eclipse tooling) and I get the same error as the original poster. It works on the first run after just starting the demo, but after stopping the process and run it again it throws the following error:

ERROR workitem.wsht.GenericHTWorkItemHandler.executeWorkItem  - Thu Jul 26 11:21:00 CEST 2012: Error when creating task on task server for work item id 1. Error reported by task server: Task operation request timed out
java.lang.RuntimeException: Task operation request timed out

Any idea why?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/750417#750417]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Mauricio Salatino
2012-07-26 10:11:53 UTC
Permalink
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/750418#750418

--------------------------------------------------------------
Make sure that you have your task server up and running
Cheers
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/750418#750418]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
swexican
2012-07-26 13:53:29 UTC
Permalink
swexican [https://community.jboss.org/people/swexican] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/750476#750476

--------------------------------------------------------------
I have started the demo enviroment with ant start.demo, and I can view and complete tasks through the jBPM Console without issues so I would suppose the task server is up and running.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/750476#750476]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
RSTVMA LDHYAGF
2012-07-27 06:55:29 UTC
Permalink
RSTVMA LDHYAGF [https://community.jboss.org/people/mab1990.amu] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/750605#750605

--------------------------------------------------------------
Hello Mauricio,

I'm using the jBPM Console and  eclipse. But I don't know if its possible because the project that we are doing we using Flash Builder as the front-end, so is there any way to intergrate Flash builder and JBPM.
The localhost that i use is: http://localhost:8080/jbpm-console http://localhost:8080/jbpm-console and for my tasks i use the ip address 127.0.0.1 and port 5445.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/750605#750605]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Alex Wulms
2012-07-30 16:12:27 UTC
Permalink
Alex Wulms [https://community.jboss.org/people/awulms_work] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/751034#751034

--------------------------------------------------------------
Hi,

I'm having similar issue.
I have installed jBPM 5.3 final with ant install.demo.
I have started all processes with ant start.demo
I have made a small workflow with a start event, a human task event and an end event

I have made a program to start the workflow and then in a loop monitor the status of the workflow.

I get inconsistent behaviour.

Sometimes it all works as expected:
-Human task gets created and becomes visible in human task view in eclipse
-Program reports that process is active.
-The program goes into a loop whereby it validates the workflow status each 3 seconds, as long as the workflow is still active and reports on the status.
-I use the human task view in eclipse to start and complete the task
-As soon as the task is completed, the program reports that the process is no longer active

Sometimes it acts weird in one way:
-The program reports the above mentioned time-out while starting the workflow
-However, the human task does become visibible in human task view in eclipse, so the creation is successfull, despite the exception
-The program reports that the process is active and keeps reporting it, until I complete the human task with the human task view in eclipse, after which the program reports that the workflow is completed.

Sometimes it acts weird in another way:
-The human task gets created and becomes visible in human task view in eclipse. I don't get any exceptions.
-On first iteration, program reports that the process is active (as expected)
-On second iteration, program reports that the process is completed.
-The human task however is still in status 'reserved', as I did not yet start and complete the human task using the human task viewer.

Any help in troubleshooting these issues is appreciated

Thanks and kind regards,
Alex



--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/751034#751034]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
toorop
2013-04-15 13:27:36 UTC
Permalink
toorop [https://community.jboss.org/people/toorop] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/808358#808358

--------------------------------------------------------------
Hi guys,

I am having exactly the same issue with the demo. In Eclipse, the first time I run "Debug as .." Java application, everything goes smoothly. I start all the tasks, terminate them, let the debugger go till the end, and later terminate.
If I run inmediately after "Debug as .." then I got the nasty error "Error when creating task on task server for work item id 1. Error reported by task server: Task operation request ..."

It only disappears when I stop the demo, clean the db (ant clean.db) and restart again.. quite annoying...
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/808358#808358]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Andy McC
2013-04-15 15:22:04 UTC
Permalink
Andy McC [https://community.jboss.org/people/andymcc] created the discussion

"Re: JBPM HUMAN TASK, TASK SERVER"

To view the discussion, visit: https://community.jboss.org/message/808400#808400

--------------------------------------------------------------
Sorry to go off thread but to reply to *toorop*, it sounds like you've hit the same issue as me ( https://community.jboss.org/thread/223191 Cannot make Evaluation example work consistently in Eclipse).

I've not had time to revisit it since, but I think it may be something to do with the example code (ProcessTest) not disposing of the human task at the end of the demo.

Not very helpful I know, but at least you know you are not alone :)

Andy McC
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/808400#808400]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...