[jboss-user] [jBPM] - Re: JEE + jBPM + threads

2013-05-08 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: JEE + jBPM + threads"

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

--
Hi,
Whenever the process reaches a wait state, such as a timer, it will return to 
the point where it was called. 

If you want the code to block then you can write any custom java code (aka 
workitem) even use a script task that does some kind of job or simply waits for 
some time. This is bad practice if you use a single persistent session, since 
the main thread will get blocked and not be responding to any requests. If you 
use multiple sessions e.g. session per request, i guess it will be fine if you 
don't mind about persistence, since blocking tasks do not get persisted, only 
on a wait state persistence takes place. Can you please explain why the thread 
creation worries you? 

Regarding issue 2 if you need to persist state then you should use persistent 
session and a common approach, as shown by the jbpm-gwt-console implementation, 
is to have a singleton session. So in your case you could use a singleton ejb 
initializing the session and providing it to the ejbs with jbpm related logic. 
If you need to scale, you may later on add some kind of a pool of sessions in 
your singleton bean.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

[jboss-user] [jBPM] - Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?

2013-05-08 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: How to fill the value of "outcomes" field in JBPM-console JSON for 
Personal Task List?"

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

--
hi, just noticed the dates of this thread  :) 
so the  {idref} referes to the username of the user whose tasks you need to 
retrieve.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

[jboss-user] [jBPM] - Re: How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?

2013-05-08 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: How to fill the value of "outcomes" field in JBPM-console JSON for 
Personal Task List?"

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

--
Hello,
 Get object with data from content,

byte[] byteContent = content.getContent();
byteArrayInputStream = new ByteArrayInputStream(byteContent);
inputStream = new ObjectInputStream(byteArrayInputStream);
contentObject = inputStream.readObject();
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

[jboss-user] [jBPM] - Re: [Jbpm5]how to get the image showing the current status of a workflow

2012-10-26 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: [Jbpm5]how to get the image showing the current status of  a workflow"

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

--
Hello,
chech out the code in this thread,
 https://community.jboss.org/message/610064#610064 
https://community.jboss.org/message/610064#610064
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: error when run "ant start.demo.db" with jbpm5.3 and mysql 5.5

2012-10-19 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: error when run "ant start.demo.db" with jbpm5.3 and mysql 5.5"

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

--
have you modified persistence.xml files and datasource in jboss? which jboss 
version are you using? make sure that the credentials for connecting are 
properly configured
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: NEED help with parallelism process

2012-10-19 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: NEED help with parallelism process"

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

--
Hi,
Parallelism can be achieved as long as you run your activities/workitems 
asynchronously. Within the discussions if you search you'll find plenty of 
discussions on related topics.
i.e.
 https://community.jboss.org/message/649767#649767 Re: saving state after 
workitem https://community.jboss.org/message/605996#605996 
https://community.jboss.org/message/605996
 https://community.jboss.org/message/649767#649767 
https://community.jboss.org/message/649767

The documentation of jbpm is really great,
 http://www.jboss.org/jbpm/documentation http://www.jboss.org/jbpm/documentation

The engine itself is single threaded (the same stands with other popular 
engines) as it should. . Howerver i think that is not what you're really after, 
what you need is your activities to be executed in parallel so async workitems 
will do nicely your job.
 http://docs.jboss.org/jbpm/v5.3/userguide/ch.core-basics.html#d0e2327 
http://docs.jboss.org/jbpm/v5.3/userguide/ch.core-basics.html#d0e2327 (also 
take a look in the asynchronous handlers section etc)
 
http://docs.jboss.org/jbpm/v5.3/userguide/ch.domain-specific-processes.html#d0e7113
 
http://docs.jboss.org/jbpm/v5.3/userguide/ch.domain-specific-processes.html#d0e7113
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to find problems with Human Task forms?

2012-10-19 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: How to find problems with Human Task forms?"

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

--
Hi, 
Although i'm not answering your question directly i propose two other 
approaches to modify forms. 
1. Directly within designer i.e. you may even copy paste the content you have 
prepared. It is a small icon that appears when you select and hover a human 
task on your bpmn diagram, that looks like a person. If you click it the code 
of the ftl is presented and rendered real time as you edit it.
2. If you go within guvnor to the assets of your package i.e. defaultPackage, 
and select "open" for the specific form, a page is shown with download and 
upload fields.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: where to find the code of default forms.

2012-10-19 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: where to find the code of default forms."

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

--
Hi,
If you take a look in
 
https://github.com/bpmc/bpm-console/blob/master/server/war-base/src/main/java/org/jboss/bpm/console/server/FormProcessingFacade.java
 
https://github.com/bpmc/bpm-console/blob/master/server/war-base/src/main/java/org/jboss/bpm/console/server/FormProcessingFacade.java

It's the value of the member field 
SUCCESSFULLY_PROCESSED_INPUT

So you can either modify this class or create a filter to modify response 
content.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Process diagram loading problem in linux

2012-10-19 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Process diagram loading problem in linux"

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

--
Hi,
Try posting some log information related to the error, please
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: error when run "ant start.demo.db" with jbpm5.3 and mysql 5.5

2012-10-19 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: error when run "ant start.demo.db" with jbpm5.3 and mysql 5.5"

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

--
Seems that the db is not reachable. 
 
http://stackoverflow.com/questions/2983248/com-mysql-jdbc-exceptions-jdbc4-communicationsexception-communications-link-fai
 
http://stackoverflow.com/questions/2983248/com-mysql-jdbc-exceptions-jdbc4-communicationsexception-communications-link-fai
Is mysql installed in the same machine as jboss i.e. localhost?
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: NEED help with parallelism process

2012-10-19 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: NEED help with parallelism process"

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

--
Hello,
You can use asynchronous workitems. You don't really have to implement specific 
workitem for script A and then another for script B, which is a valid approach 
but more cumbersome, just create a generic workitem that calls arbitrary java 
from any class and method passed as parameters.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: component to map a date variable in a process.

2012-10-19 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: component to map a date variable in a process."

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

--
Hi,
how about  http://jqueryui.com/datepicker http://jqueryui.com/datepicker
then on submit or on some other event you can retrieve the long value, as 
Tihomir mentioned, of the js Date object held by the datepicker and populate 
the form field of your variable in order to pass it to your process.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Where can i download the java source code that inside gwt-console-server?

2012-06-01 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Where can i download the java source code that inside gwt-console-server?"

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

--
Hello,
 
https://github.com/bpmc/bpm-console/tree/master/server/war-base/src/main/java/org/jboss/bpm/console/server
 
https://github.com/bpmc/bpm-console/tree/master/server/war-base/src/main/java/org/jboss/bpm/console/server

just make sure you look at the right version/branch
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: jBPM 5.3 jbpm-console problem

2012-06-01 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: jBPM 5.3 jbpm-console problem"

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

--
Hello,
I think you may also need to replace class 
*org.jbpm.task.service.**TaskServiceSession*

check out this thread it is related to this issue,
 https://community.jboss.org/message/738335#738335 
https://community.jboss.org/message/738335#738335
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: jbpm 5.3 - groups

2012-05-28 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: jbpm 5.3 - groups"

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

--
It has been corrected as shown on the following commit ,
 
https://github.com/droolsjbpm/jbpm/commit/4a47527163854b233cdb9599f54c9320e945a372
 
https://github.com/droolsjbpm/jbpm/commit/4a47527163854b233cdb9599f54c9320e945a372

Now +TaskServiceSession+ uses proper query 
(+TasksAssignedAsPotentialOwnerByStatusWithGroups+)  from +Taskorm.xml.+
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - jbpm 5.3 - groups

2012-05-28 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"jbpm 5.3 - groups"

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

--
Hello,
I've noticed in 3 different computer systems (centos, win xp, win vista) that 
when creating a process with a human task that only has a groupId specified 
(i.e.  
https://community.jboss.org/servlet/JiveServlet/showImage/2-738279-18646/image.png
  
https://community.jboss.org/servlet/JiveServlet/downloadImage/2-738279-18646/310-139/image.png
 ), the following exception is thrown when reaching the point of the human task.


*6:01:28,031 ERROR [stderr] (Thread-13) java.lang.IllegalArgumentException: 
org.hibernate.QueryParameterException: could not locate named parameter 
[userId]*

16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:206)

*16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.jbpm.task.service.TaskServiceSession.getTasksAssignedAsPotentialOwnerByStatusByGroup(TaskServiceSession.java:1011)*

16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:356)

16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:44)

16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:85)

16:01:28,031 ERROR [stderr] (Thread-13)   at 
java.lang.Thread.run(Thread.java:662)

16:01:28,031 ERROR [stderr] (Thread-13) Caused by: 
org.hibernate.QueryParameterException: could not locate named parameter [userId]

16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.hibernate.engine.query.ParameterMetadata.getNamedParameterDescriptor(ParameterMetadata.java:99)

16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.hibernate.engine.query.ParameterMetadata.getNamedParameterExpectedType(ParameterMetadata.java:105)

16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.hibernate.impl.AbstractQueryImpl.determineType(AbstractQueryImpl.java:437)

16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:407)

16:01:28,031 ERROR [stderr] (Thread-13)   at 
org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:201)

16:01:28,031 ERROR [stderr] (Thread-13)   ... 5 more

16:01:28,031 ERROR [stderr] (Thread-33) Exception in thread "Thread-33" 
java.lang.RuntimeException: Client Exception with class class 
org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1 using port 5445

16:01:28,046 ERROR [stderr] (Thread-33)   at 
org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:134)

16:01:28,046 ERROR [stderr] (Thread-33)   at 
java.lang.Thread.run(Thread.java:662)

16:01:28,046 ERROR [stderr] (Thread-33) Caused by: 
java.lang.NullPointerException

16:01:28,046 ERROR [stderr] (Thread-33)   at 
org.jbpm.task.service.TaskClientHandler.messageReceived(TaskClientHandler.java:62)

16:01:28,046 ERROR [stderr] (Thread-33)   at 
org.jbpm.task.service.hornetq.HornetQTaskClientHandler.messageReceived(HornetQTaskClientHandler.java:56)

16:01:28,046 ERROR [stderr] (Thread-33)   at 
org.jbpm.task.service.hornetq.HornetQTaskClientConnector$1.run(HornetQTaskClientConnector.java:120)

16:01:28,046 ERROR [stderr] (Thread-33)   ... 1 more

16:01:48,031 ERROR [stderr] (http-localhost-127.0.0.1-8080-3) 
java.lang.RuntimeException: Timeout : unable to retrieve results

16:01:48,031 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)   at 
org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler.getResults(BlockingTaskSummaryResponseHandler.java:41)

16:01:48,031 ERROR [stderr] (http-localhost-127.0.0.1-8080-3)   at 
...
...

By checking out the code of *org.jbpm.task.service.**TaskServiceSession* at 
line *1011* a named query is called as follows,
Query query = tpm.createQuery("TasksAssignedAsPotentialOwnerByStatusByGroup")
 .setParameter("userId", userId)
 .setParameter("groupIds", groupIds)
 .setParameter("language", language)
 .setParameter("status", status);

However as seen in Taskorm.xml inside 
jbpm-human-task-core-5.3.0.Final.jar/META-INF, indeed the named query has no 
userId parameter

++
+  +
+select+
+ new org.jbpm.task.query.TaskSummary(+
+ t.id,+
+ t.taskData.processInstanceId,+
+ name.text,+
+ subject.text,+
+ description.text,+
+ t.taskData.status,+

[jboss-user] [jBPM] - Re: Process output : Is there a way to get output from a process

2012-04-02 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Process output : Is there a way to get output from a process"

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

--
Hi,
You can simply add a ProcessEventListener and have access to variables at any 
stage of the process.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Process output : Is there a way to get output from a process

2012-03-31 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Process output : Is there a way to get output from a process"

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

--
Hi,
You should make the process call a web service of your system, or some other 
means of communication i.e. ejb, jms etc.  This can be easily implemented 
within a work item.
Another approach could be to pass an object to the process which allows to add 
a listener to it and then make the process to trigger the event, when it 
reaches the desired state. In more detail, you add a listener from your system 
to that object, pass the object as input parameter to the process and the 
process triggers the event that in turn will call all the listeners registered 
to the object i.e. one of them should be a listener of your system.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Is there anyone who is familiar with the console source code?

2012-02-21 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Is there anyone who is familiar with the console source code?"

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

--
hi,
the source code can be found here,
 https://github.com/bpmc/bpm-console https://github.com/bpmc/bpm-console
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Is there anyone who is familiar with the console source code?

2012-02-20 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Is there anyone who is familiar with the console source code?"

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

--
Well to be honest i'm not familiar with the Shiro framework. I guess you'll 
have to disable somehow the jaas authentication and enable yours, so you will 
probably have to make modifications in web.xml look at the security 
constraints, roles etc.
For example try to comment them all out to see if security is still required 
although you'll have to somehow pass the username for the server to make proper 
retrieval of data i.e. task data, group data etc, i think, not sure though, 
this happens on the gwt client side by holding the username from the gwt login 
dialog, then it is using that parameter when requesting stuff from the gwt 
server by passing it as parameter to the REST API of the gwt server.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Process in Eclipse Designer with two Script Tasks

2012-02-20 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Process in Eclipse Designer with two Script Tasks"

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

--
Hello,
You also need to set it back to the process context i.e.
kcontext.setVariable("anzahl",anzahl);
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Is there anyone who is familiar with the console source code?

2012-02-20 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Is there anyone who is familiar with the console source code?"

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

--
hello,
it is in the gwt console server war file and it is using jaas security (http 
form based authentication)
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Forcing savepoints during workflow execution

2012-02-20 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Forcing savepoints during workflow execution"

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

--
Hello,
>  if in a sync service task I inserted some data into a DB 
> (non-transactional maybe) and the engine crashes between this point and the 
> next wait state then on resume this data will get inserted in the DB again.
One way of handling this is to place some logic before saving your data in 
order to check whether it actually needs to be saved or not. 
For example from your business logic i.e. do i have an entry for this entity 
with this id already? etc if it is not possible to have it from your logic then 
use the process instance id i.e. save the pid in a table associated to the 
specific entry.

However the same problem you mention may happen at any point of your code as 
long as it does not belong to the same transaction, so having a way to force 
saving the state is the same as saving it from the process.

Please take a look at the following discussion, it is a little long but i think 
this issue is discussed quite thorougly,
 https://community.jboss.org/message/649767#649767 
https://community.jboss.org/message/649767#649767

thanks
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Setting input/params/variables in BPMN2 web designer

2012-02-20 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Setting input/params/variables in BPMN2 web designer"

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

--
Hello,
Regarding the on entry/exit actions of domain specific work items, they will be 
shown if you switch the type of your work item to the default task type.
 So the procedure would be to insert a domain specific work item and populate 
its attributes, then switch its type to default task the on entry/exit attrs 
will be presented, populate them and then switch the type back to your domain 
specific work item. Although a bit hacky it seems to work. However my opinion 
is to use script tasks before and after instead of the on entry/exit, since 
they are visible directly on the diagram and more clear to the reviewer.
I haven't migrated to latest realease of designer yet to try it out, however i 
think it will probably work the same way.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Problem while viewing the tasks in jbpm console

2012-02-03 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Problem while viewing the tasks in jbpm console"

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

--
Hi,
look inside /jbpm-installer/task-service/resources/META-INF
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Result Mapping for ServiceTask in CustomWorkItemEditor

2012-02-02 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Result Mapping for ServiceTask in CustomWorkItemEditor"

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

--
One way of doing it could be by seting variables of the 
StatefulKnowledgeSession. The StatefulKnowledgeSession could be passed to the 
constructor of your work item handler.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Result Mapping for ServiceTask in CustomWorkItemEditor

2012-02-02 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Result Mapping for ServiceTask in CustomWorkItemEditor"

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

--
Hi,
If i understood correctly, you can return results from your custom work item by 
passing your parameters to the 
*completeWorkItem(WorkItem workItem, WorkItemManager manager, Map results)* method of WorkItemManager object 
i.e.

Map results;
results.put("result", resultObject); results.put("error",errorObject);
manager.completeWorkItem(workItem.getId(), results);
or even better from the StatefulKnowledgeSession object via
ksession.getWorkItemManager().completeWorkItem() .

Then you can assign the result mapping i.e from editors.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Problem while viewing the tasks in jbpm console

2012-02-02 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Problem while viewing the tasks in jbpm console"

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

--
Hello,
This happens because of the line
 found in 
persistence.xml and hibernate.cfg.xml files.
Basically what this does is to recreate the tables, thus data gets lost.

The persistence related files are in META-INF of your task service, also in  
jbpm-gwt-console-server.war\WEB-INF\classes and 
jbpm-gwt-console-server.war\WEB-INF\classes\META-INF of your console server.
You can simply comment it out or read more about it... check out the following 
thread and the links mentioned,
 https://community.jboss.org/message/641541#641541 
https://community.jboss.org/message/641541#641541
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Problem while viewing the tasks in jbpm console

2012-02-01 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Problem while viewing the tasks in jbpm console"

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

--
Tihomir u're right i got carried away, thought db was on a separate machine as 
well.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Problem while viewing the tasks in jbpm console

2012-02-01 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Problem while viewing the tasks in jbpm console"

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

--
Hi,
the properties file is located in jbpm-gwt-core-5.1.0.Final.jar of 
jbpm-gwt-console-server.war. Also make sure to modify the ChangeSet.xml as well 
also located in jbpm-gwt-core-5.1.0.Final.jar. You will probably have to modify 
persistence.xml and hibernate.cfg.xml files located inside jars of this war i.e.
- jbpm-human-task-5.1.0.Final.jar and jbpm-bam-5.1.0.Final.jar  as well as in 
the runtime used by the human task
- jbpm-gwt-console-server.war META-INF
- jbpm-gwt-console-server.war lib/jbpm-human-task-5.1.0.Final.jar META-INF
- jbpm-gwt-console-server.war lib/jbpm-bam-5.1.0.Final.jar META-INF
- jboss datasource i.e. modify testDS1-ds.xml

Although i would certainly advise you to migrate to jbpm5.2, where all settings 
are centralized along with many other features and fixes
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: saving state after workitem

2012-01-31 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: saving state after workitem"

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

--
Great i'm glad it worked out for you. 
The human task work item handler CommandBasedWSHumanTaskHandler works in a 
similar way.
p.s. please mark question as answered so we can assist others
thanks
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Using jbpm-human-task-war.war instead of DemoTaskService.class

2012-01-31 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Using jbpm-human-task-war.war instead of DemoTaskService.class"

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

--
Can you please post what you get on the log of jboss so that we look at the 
exact exceptions ? 
Thanks
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: saving state after workitem

2012-01-31 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: saving state after workitem"

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

--
Hi,
I tried out your code on jboss7, mysql and it worked fine with the following 
changes applied,

1. Introduce a KnowledgeRuntime field in your handler,
public class SaveStateWorkItemHandler implements WorkItemHandler {
*private KnowledgeRuntime session;*

    public SaveStateWorkItemHandler() {
    }

    public SaveStateWorkItemHandler(*KnowledgeRuntime session*) {
    this();
 *this.session = session;*
    }
..

2. Complete the work item in your SaveStateWorkItemHandler as follows,

System.out.println(" END SAVE-STATE SLEEP *");
*session.getWorkItemManager().completeWorkItem(myWorkItem.getId(), null);*

3. Register your handler accordingly,
*ksession.getWorkItemManager().registerWorkItemHandler("SaveState", new 
SaveStateWorkItemHandler(ksession));*
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Using jbpm-human-task-war.war instead of DemoTaskService.class

2012-01-30 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Using jbpm-human-task-war.war instead of DemoTaskService.class"

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

--
Hello,
Indeed starting a thread within a servlet is not a very good idea in general, 
however it will not necessarily hurt  i.e. in cases that you don't care if the 
thread are managed by the app server, or you don't want to use resources from 
the app server context etc. 
At first glance i feel the same with human task war, the thread that starts 
when the server starts will exist as long as the server runs, even if you could 
tried to start another thread while running you wouldn't be able because the 
human task port would be occupied. Of course one could always elaborate a bit 
on the code and make it managed possibly by using servletcontextlistener, ejb, 
quartz, spring etc

Regarding the jbpm-human-task-war you may need to add a little code regarding 
the task callback functionality, to se how just check the code of 
DemoTaskService and put it in HumanTaskServiceServlet you'll also need the 
jbpm.usergroup.callback.properties.

I managed to make it  run , since i was getting some  
javax.naming.NameNotFoundException: TransactionManager -- service etc in 
relation to the "Could not connect to task client", by changing the following 
line within persistence.xml
from 

to

you will also need to put in WEB-INF/lib the jbpm-tm.jar found in the folder of 
your jbpm5.2 jbpm-installer.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: problem with on entry/exit action (designer-2.0-jboss7.war , 27-Jan-2012 )

2012-01-30 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: problem with on entry/exit action (designer-2.0-jboss7.war , 27-Jan-2012 )"

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

--
Thanks Tihomir.
issue reported,
 https://issues.jboss.org/browse/JBPM-3518 
https://issues.jboss.org/browse/JBPM-3518
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: problem with on entry/exit action (designer-2.0-jboss7.war , 27-Jan-2012 )

2012-01-30 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: problem with on entry/exit action (designer-2.0-jboss7.war , 27-Jan-2012 )"

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

--
As far as i can see the part of the bpmn from eclipse with the script
i.e.

    
  System.out.println("test");
    
  

will work if script tags contain namespace prefix i.e.


    
  <*tns:script*>System.out.println("test");
    
  
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - problem with on entry/exit action (designer-2.0-jboss7.war , 27-Jan-2012 )

2012-01-30 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"problem with on entry/exit action (designer-2.0-jboss7.war , 27-Jan-2012 )"

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

--
Hello,
i'm using jboss7 with jbpm5.2 and after updating to designer-2.0-jboss7.war 
built of 27-Jan-2012 all the processes (created from eclipse) that had code in 
on entry or on exit actions don't get rendered. Basically a processes created 
in eclipse containing a workitem (i.e. Log) with code in the on entry or on 
exit action does not render in the designer. Is this the case?
Thanks
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: saving state after workitem

2012-01-28 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: saving state after workitem"

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

--
I see, well it should persist by the time the main thread exits the 
executeWorkItem method, it is then when the transaction commits. 
Have you tried to check the database while the 2nd loop was running or by using 
a breakpoint to hold the execution?
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: saving state after workitem

2012-01-27 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: saving state after workitem"

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

--
Hello,
So for the following case,
start->workItem1->script1->workItem2->script2->end

a) Yes by reaching script2 the workitem1 is completed and its entry is deleted 
from the workiteminfo table. It also means that workitem2 has executed and by 
failing at script2 you can only examine the NodeInstanceLog table to figure out 
what has happened and maybe take some action. However  i think the process 
instance at that stage will not resume since there will be no associated 
workitem persisted to execute/complete.
b) If workitem1 completes then it is deleted from the workiteminfo. But 
generally if you pickup a persisted work item (other than a work item 
associated with a human taskbecause a human task has an entry in the task 
table as well and needs a bit more care i.e. whether the task has completed or 
not etc) from the database you can either re execute it or complete it. These 
are achieved by quering the database table workiteminfo retrieving the object 
associated with the work item you want and calling either

YourWorkItemHandler yourWorkItemHandler = new YourWorkItemHandler();
yourWorkItemHandler.executeWorkItem(workItemFromDB, 
ksession.getWorkItemManager());
+to re execute the work item+ 
+or complete it+
ksession.getWorkItemManager().completeWorkItem(workItemFromDB, 
workItemFromDB.getParameters()/*or some other params etc*/);

The following bootstrap code can be used for non human task work items that 
have not completed (i.e. system crashed while running) and choosing to re 
execute them, as well as human task work items that have completed and the 
system crashed right after the human task completion but before entering the 
next wait point.

private void bootstrapForWorkItems() {
    EntityManagerFactory emf = null;
    EntityManager tempEntityManager = null;
    List results = null;
    try {
    emf = (EntityManagerFactory) 
ksession.getEnvironment().get(EnvironmentName.ENTITY_MANAGER_FACTORY);
    tempEntityManager = emf.createEntityManager();
    results = tempEntityManager.createNativeQuery("SELECT w.* FROM 
WorkItemInfo w inner join Task t on t.workItemId=w.workItemId where 
t.status='Completed' union SELECT w.* FROM WorkItemInfo w  where name <> 'Human 
Task'", WorkItemInfo.class).getResultList();
    } finally {
    if (tempEntityManager != null) {
    tempEntityManager.close();
    }
    }
    if (results != null) {
    for (Object resultObject : results) {
    WorkItemInfo workItemInfo = (WorkItemInfo) resultObject;
    WorkItem workItem = 
workItemInfo.getWorkItem(ksession.getEnvironment());
    if (workItem.getName().equals("YourWorkItem1")) {
    YourWorkItem1WorkItemHandler yourWorkItem1WorkItemHandler = 
new YourWorkItem1WorkItemHandler(ksession);
    yourWorkItem1WorkItemHandler.executeWorkItem(workItem, 
ksession.getWorkItemManager());
    }
    if (workItem.getName().equals("YourWorkItem2")) {
 YourWorkItem2WorkItemHandler yourWorkItem1WorkItemHandler = new 
YourWorkItem2WorkItemHandler(ksession);
    YourWorkItem2WorkItemHandler.executeWorkItem(workItem, 
ksession.getWorkItemManager());
    } else if (workItem.getName().equals("Human Task")) {
/*i'm not sure about the workItem.getParameters() here, might be getting the 
params of the previous human taskmight need a little fixing*/
    
ksession.getWorkItemManager().completeWorkItem(workItem.getId(), 
workItem.getParameters());
    //or
    //call correct workitemhandler for this task and re execute
    }
    }//for - results
    }//if - results
    }//method

Of course in some cases you may choose to act differently i.e.instead of re 
executing a work item, complete it because you checked your business logic 
(i.e. checked your system's database) and realised that data has been commited 
or web service has been called but the jbpm engine system crashed right before 
erasing the workitem etc.

c) By quickly looking at your code and  log  i see that workitem1 executed then 
script1, followed by workitem2 and script2  so i think it went fine. I'm 
not sure i get the problem.
--

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

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

[jboss-user] [jBPM] - Re: saving state after workitem

2012-01-27 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: saving state after workitem"

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

--
Hi,
When you reach the signal, your process will persist and wait for that signal. 
The only place to see that a signal has been reached by an instance of your 
process, is the NodeInstanceLog table. If you examine the entries you can find 
out whether a signal has completed or not. Then you would have to somehow 
figure out the ref of the signal and make a call as you would from your 
external process and continue.  So if i understand correctly you want your 
process to wait at the signal and somehow an external event is called by your 
system to continue..

Otherwise if you only try to persist just make workitem1 asynchronous and omit 
the signal part i.e. start->script1->workitem1->script2->workitem2->end. That 
will persist your work item until it gets completed. So if it fails while 
running you can get the work item from WorkItemInfo and rerun it , otherwise if 
it completes the process will continue to script2 and so on.

please correct me if i havent understood your intention
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: User Task Assignment and Assignment Restrictions

2012-01-25 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: User Task Assignment and Assignment Restrictions"

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

--
Hello,
You could also use process variables i.e. have a colleciton with possible 
outcomes that gets populated on the entry action of each task.

The advantage of these approaches is the simplicity in implementing them, 
however the downside is that you enter data to your process that is already 
there if i understand correctly. So i guess it would be best to just use 
the data that is already defined within your bpmn. 

Have you tried traversing your process and examine each of the nodes to see 
whether you can retrieve such data? 
Take a look at the following post on how to traverse your process,
 https://community.jboss.org/message/630192#630192 
https://community.jboss.org/message/630192
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Display next task form with out going to the tasks list page

2012-01-18 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Display next task form with out going to the tasks list page"

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

--
Hello,
Yes what you try to do is possible. It seems fine to me as we do a similar 
functionality for orchestration purposes of our systems, so there no sign of a 
workflow/bpm engine working in the core while using the system. In the meantime 
we get all the advantages of jbpm within our system i.e. model our systems, 
real time customisation, loosely coupled integration with other 
systems/services - soa etc.

Check out the following link,
 
https://community.jboss.org/people/bpmn2user/blog/2011/11/14/jbpm5--local-human-task-example
 
https://community.jboss.org/people/bpmn2user/blog/2011/11/14/jbpm5--local-human-task-example

also check out the bpmn2user's blog in general,
 https://community.jboss.org/people/bpmn2user/blog 
https://community.jboss.org/people/bpmn2user/blog/

I recomend it! it is really valuable with great resources.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: saving state after workitem

2012-01-18 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: saving state after workitem"

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

--
Hello,
What if the server crashes while calling the web service just before calling it 
or just before the response is received?
To overcome such a scenario, you would need to persist the work item before 
calling the web service.

Generally when you create a workitem, in order to have its state persisted, by 
the engine, you need to run it asynchronously, i.e. within a new thread.
When the system is recovered you would need to re run this work item.

If you want to perist the state of the process right after the web service is 
called, in other words when the work item is completed, you can simply call 
another asynchronous work item right after the call of you web service work 
item. In addition a human task could be used, if it makes sense.

However, what if the system goes down before completing the ws work item but 
after the ws call?
Then you need to apply some kind of logic in your system that runs the ws call 
within a transaction and modifies some kind of state, that you will check when 
trying to rerun the work item after a process recovery.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to suspend and resume a process?

2012-01-15 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: How to suspend and resume a process?"

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

--
Hello,

> sebb wrote:
> 
> ... We have a scenario where processes have different priorieties and 
> relations (for example process A cant run while process B is active). 
> Therefor it should be possible to suspend a whole process, so that a process 
> with a higher priority can run. I guess most of the time it's a problem of 
> the workitems. When a process is paused the workitems (long running async 
> items) have to be paused too and that will also somehow suspend the process 
> (like your second example). But what happens when the process should be 
> paused just in the milliseconds between two nodes (not very common, but If 
> there is a timer between two nodes it would be quite probable)? In this case 
> there would be no workitem that i can suspend manually to suspend the whole 
> process and that way the process would just go on after the timer stopped.
> 
> Any thoughts about my scenario? Can you think of other examples (like the 
> timer) where an external pause/resume would not work?

In order to manage the way different types of processes  (i.e. type A - low 
priority, type B - high priority etc) are run, i suggest the following concept 
of an approach which involves a little custom work,

1. A small infrastructure for actually pausing any process before executing a 
work item. This can be achieved by initialy associating some kind of flag with 
each process started. Then create a central base abstract work item handler, 
which all your work items will extend, having a logic at the start of each 
executeWorkItem(..) method where a check to the flag would take place. If the 
flag is up then the execution continues, else if the flag is down it sits there 
and waits until the flag is up. Of course this will have to run asynchronously 
within a new thread at least for two reasons a. so not to block the engine b. 
to persist and continue all processes if the engine goes down at any point. 
This way you will be able to pause processes at the start of a work item. You 
will not be able to pause a process while running a work item's logic, unless 
you place appropriate logic of persisting state at any point of execution, then 
resuming everything etc, this is hard, not very efficient (well depending on 
the work done at each instant of time on each work item of each process) and 
error prone.

2. An object acting as a controller containing all the business logic related 
to priorities and relations of processes. This controller would decide whether 
a process has to be paused or resumed etc by raising or lowering the flag of 
the running processes. The controller would probably run when starting each 
process, in order to decide what to do with the other processes running or the 
current process etc.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Customize jBPM Console

2012-01-12 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Customize jBPM Console"

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

--
hi,
Please take a look at the following thread,
 https://community.jboss.org/message/610064#610064 
https://community.jboss.org/message/610064#610064

If you don't use gwt-console-server then you can retrieve the image from guvnor 
or resources of your application .
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Customize jBPM Console

2012-01-12 Thread Chris Melas
Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Customize jBPM Console"

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

--
hi,
Please take a look at the following thread,
 https://community.jboss.org/message/610064#610064 
https://community.jboss.org/message/610064#610064

If you don't use gwt-console-server then you can retrieve the image from guvnor 
or resources of your application .
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: problem when start jboss AS 7 in JBPM5

2012-01-06 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: problem when start jboss AS 7 in JBPM5"

To view the discussion, visit: http://community.jboss.org/message/645126#645126

--
Hello,
Also check the log and if you like paste what you see.
The log of jboss7 is under jboss-as-7.0.2.Final/standalone/log/server.log and 
boot.log if no server.log exists
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Where can I find jBPM Console client source code?

2012-01-05 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Where can I find jBPM Console client source code?"

To view the discussion, visit: http://community.jboss.org/message/644833#644833

--
This is the latest fork,
 https://github.com/bpmc/bpm-console https://github.com/bpmc/bpm-console
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: jbpm5.2 rest resources list

2012-01-05 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: jbpm5.2 rest resources list"

To view the discussion, visit: http://community.jboss.org/message/644832#644832

--
You have to type,
 http://10.1.3.26:8082/gwt-console-server/rs/server/resources/jbpm 
http://youaddress:yourport/gwt-console-server/rs/server/resources/jbpm
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: jbpm5.2 rest resources list

2012-01-05 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: jbpm5.2 rest resources list"

To view the discussion, visit: http://community.jboss.org/message/644829#644829

--
Indeed this seems to be the case in my setup also (5.2, jboss7)
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Human Task Assignment -- actor status changed

2012-01-05 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Human Task Assignment -- actor status changed"

To view the discussion, visit: http://community.jboss.org/message/644801#644801

--
Hi,
I'll try to see how each of your reqs are solved with "out of the box" 
functionality


> A task associated with the first node can be claimed by any member of a given 
> group. When complete, the subsequent task can also be claimed by any member 
> of some group (possibly a different one). However, the id of the actor that 
> completed the previous task is retained as a process variable.
- So, task1 and task2 are assigned to a group - ok
- The id of the actor that completed task1 will have to be mapped to a process 
variable - ok ( can be done either by using #{some expression} or a little 
magic around kcontext within the on exit action etc)


> So here is the scenario. For the 2nd task, the actor completing that task 
> will set "approved" to true or false. If "approved" is false, then:
> 
> --the process should return to the previous node and be assigned to the actor 
> that completed it before...
> 
>  unless:
> 
>   --either that actor no longer exists
>    or
>   --that actor exists but is no longer a member of the group that can 
> claim the task
>    ...in which case, the task should be claimed by some other 
> member of this group
- Assigning the actor based on the variable value is ok. however i'm not 
sure what happens if both actorid and groupid are present in task1 whether 
the actorid will supersede-> although you can always place a task3 which is 
the same as task1 and everything works fine.
- Regarding the "unless" part this is a little strange, because if the actor no 
longer exists and you assign the actorid 
the following might happen (sry havent tried it)
a. the system complaints that the specific user no longer exists
b. the system has no problem that the users no longer exists and the group part 
works - then all ok 

keep in mind that i'm talking about zero code situations  i.e. not even 
user-group callback etc

If the actor exists but no longer part of the group then this gets complicated. 
Because, if the user exists then the actorid will be assigned along with the 
groupid, but the engine must not assign it to this user since is not a member 
of the group - not ok (this i'm almost certain that will not work for this 
engine as well as two more i.e. activiti and intalio,  in jbpm this can be 
achieved with a little programming in a clean manner).
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: designer png, pdf formats in jboss7

2012-01-05 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: designer png, pdf  formats in jboss7"

To view the discussion, visit: http://community.jboss.org/message/644792#644792

--
Sorry, i guess my post was a little confusing and the approach of solving the 
issue i faced a little over simplified. The thread you point at has the latest 
designer with all issues resolved, thanks.

p.s. just to clear things out
 the  jars i mentioned emerge from the required classes of the exceptions that 
occured (similarly to the other thread, sry i missed it).
So basically one would have to download the jars containing the specific 
classes, however the jars (more or less latest) of the related frameworks (i.e. 
appache logging, xerces) are found in the drools-guvnor.war.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - designer png, pdf formats in jboss7

2012-01-04 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"designer png, pdf  formats in jboss7"

To view the discussion, visit: http://community.jboss.org/message/644599#644599

--
Hello,
I'm using the great new release of jbpm (5.2) on the great jboss7 (thanks guys 
for the excellent job) on a remote address (not localhost) on a custom port 
(not 8080) and i've noticed that in order to use the png and pdf functions of 
web designer one might need to add three jars in designer.war (in WEB-INF/lib). 
The jars are,
commons-logging-1.0.4.jar
xml-apis-1.3.04.jar
xercesImpl-2.9.1.jar

and they can be found in drools-guvnor.war

Restarting the server, after redeployment, is required.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: JBPM-Model Driven Architecture(MDA)

2011-12-26 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: JBPM-Model Driven Architecture(MDA)"

To view the discussion, visit: http://community.jboss.org/message/643236#643236

--
Hello,
We are actually using jbpm5 within our application development framework to 
orchestrate, through bpmn 2.0 models and jbpm5, our software systems. The 
systems are implemented, executed and controlled based on the designed models. 
So in a sense the architecture of these systems is defined within those models, 
as well as any integration points with other systems/services i.e. calling 
published web services through jbpm5 work items. Hence the cocepts of MDA/MDD 
are pretty much met, however I'm not sure to what extend it is aligned to the 
exact concepts of OMG on these matters.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Evaluating jBPM for these cases

2011-12-14 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Evaluating jBPM for these cases"

To view the discussion, visit: http://community.jboss.org/message/641472#641472

--
In a clustered environment if a node fails everything should continue working 
as if nothing happened.

In a non clustered environment when jbpm fails, since the state is persisted it 
will continue from where it left off unless the failure occured while executing 
a work item i.e. while calling a web service, while executing a piece of code, 
as you mentioned between after the start of the work item and before the end of 
it. In those cases one will have to specify to the engine what to do with the 
persisted work items i.e. re-run them, complete them, do something based on 
some logic related to the work item etc.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Evaluating jBPM for these cases

2011-12-13 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Evaluating jBPM for these cases"

To view the discussion, visit: http://community.jboss.org/message/641314#641314

--
Hello,
Well in a clustered environment when a request is received one of the nodes 
will serve that request. If that node fails then it's up to the cluster to 
maintain the running session having it available to the other nodes and also 
redirect the next request to an available node. So then comes jbpm running on 
the other node that will try to handle that request. Since the data regarding 
the processes is persisted at a common datastore and the app server's session 
is maintained then the instance of jbpm within that session should be able to 
carry on.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Evaluating jBPM for these cases

2011-12-13 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Evaluating jBPM for these cases"

To view the discussion, visit: http://community.jboss.org/message/641243#641243

--
Hi,

1)Yes via custom work items ( 
http://docs.jboss.org/jbpm/v5.1/userguide/ch13.html 
http://docs.jboss.org/jbpm/v5.1/userguide/ch13.html), there is no out of the 
box implementation for that. Although it is pretty straightforward to implement 
jax-rs and jax-ws with work items, there will also be available some 
interesting implementations in the public repository ( 
http://kverlaen.blogspot.com/2011/10/introducing-service-repository.html 
http://kverlaen.blogspot.com/2011/10/introducing-service-repository.html , 
http://kverlaen.blogspot.com/2011/12/jbpm-52-released.html ) .

2)The state of work items is always stored before and after execution. The only 
thing that you may need is to have some kind of logic executed in case the 
system breaks down while executing a work item in order to specify how you want 
to react for the stored work items that may not have completed execution i.e. 
restart execution or complete automatically etc.

3,4)I think this mainly depends on the app server you'll be using i.e. Jboss 
provides ha clustering solutions , as far as jbpm5 is concerned you'll be fine. 
Basically treat jbpm5 as you would with any other jee application.

5)Yes, there is a console and repository already for jbpm. However you can also 
implement your own or simply use the available api to do actions like that, it 
all depends on how you plan to use jbpm i.e. in the core of your app, as a 
service etc

- no problem with oracle many people have been using it
- quartz is not required by jbpm5 to function
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Problem with multiple process instances and HumanTasks

2011-12-13 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Problem with multiple process instances and HumanTasks"

To view the discussion, visit: http://community.jboss.org/message/641240#641240

--
Hi,
Take a look in the implementation of jbpm gwt-console server in 
jbpm5.x_sources\jbpm-gwt-core\src\main\java\org\jbpm\integration\console\CommandDelegate.java
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Can workflow be changed runtime in jbpm?

2011-12-10 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Can workflow be changed runtime in jbpm?"

To view the discussion, visit: http://community.jboss.org/message/640893#640893

--
Hello,
If you make a change while the process is in use and if the change you want to 
make is permanent and global not per case/user or based on some logic you can 
easily achieve that by using Guvnor repository and its designer. I think you 
may also do something like that programmaticaly and via the REST API of Guvnor 
as well as compilation of the package etc
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How do I identify pids of jBPM 5.1 task service and jBoss AS on (RedHat) Linux system

2011-12-10 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How do I identify pids of jBPM 5.1 task service and jBoss AS on (RedHat) 
Linux system"

To view the discussion, visit: http://community.jboss.org/message/640890#640890

--
Hi
ps aux | grep java 
or 
ps aux | grep jboss
or 
ps aux | grep ant

Probably all of the above will show you the process of jboss AS and the pid of 
the java process running the task service. If you have embedded the task 
service in jboss then the above commands will only show you the process of 
jboss AS
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Alternatives to the jBPM web console

2011-12-08 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Alternatives to the jBPM web console"

To view the discussion, visit: http://community.jboss.org/message/640598#640598

--
Hi,
We have created an alternative to gwt-console and are using only the server 
part gwt-console-server at the moment via its REST API, exactly as the existing 
gwt-console client communicates. That is a quick solution, alternatively you 
can also write your own gwt-console-server or as you already mentioned embed 
everything in one web application.

1. I think the console that comes shipped in the installation is mostly great 
for testing purposes . For a real application you will probably need to modify 
layout/style and captions, display extra information (i.e. from your business 
domain) or remove some, maybe i18n etc. The communication with the process 
engine is done either by using the existing gwt-console-server or writing your 
own module using the jbpm5 engine.

2. Yes you can certainly have everything in one web app, however by having the 
logic on a server component you can actually retrieve information and interact 
with your process engine from other systems  as well. For example you may want 
another app's screen to show the tasks that are pending for a specific user, 
nothing elseOf course you could publish web services from your web app but 
that is less loose coupled and not modular. A good example is 
gwt-console/gwt-console-sever we are able to create a different console 
client by reusing the server component. Also the console client is being used 
by other jboss modules of other frameworks (server components) i.e. Riftsaw, 
DroolsFlow

3. I would advice to simply write your own integration layer that basicly 
handles the communication with the REST API of the gwt-console-server
you can find info regarding the available methods from your jbpm5 
installation    http://10.1.3.26:8082/gwt-console-server/rs/server/resources 
http://yourJBPMServer/gwt-console-server/rs/server/resources
It gives you flexibility on the way you delegate control to the server and how 
you retrieve data. However the code of the console is here,  
https://github.com/heiko-braun/bpm-console 
https://github.com/heiko-braun/bpm-console as well as docs.

4. As bpmn2user mentioned there many design options so It really depends on the 
imlementation you choose... .whether you use directly the process core engine 
that you keep in your application or with a server component that handles a 
process engine i.e. the existing gwt-console-server
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Where can I find jBPM Console client source code?

2011-12-05 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Where can I find jBPM Console client source code?"

To view the discussion, visit: http://community.jboss.org/message/639788#639788

--
Hi,
 https://github.com/heiko-braun/bpm-console 
https://github.com/heiko-braun/bpm-console
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Retrieval of variable values for a process instance

2011-12-05 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Retrieval of variable values for a process instance"

To view the discussion, visit: http://community.jboss.org/message/639783#639783

--
Hello,

((WorkflowProcessInstance)ksession.getProcessInstance(processInstanceId)).getVariable(varName);
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to setup Event to stop current execution & "jump" to that node?

2011-10-24 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to setup Event to stop current execution & "jump" to that node?"

To view the discussion, visit: http://community.jboss.org/message/633253#633253

--
Thanks Maciej this looks nice and efficient.

I would also like to add that based on this and the approach i proposed 
earlier,  in order to support arbitrary number of email sendings, the following 
could be done, which works on eclipse editor and jbpm with no modifications.

 
http://community.jboss.org/servlet/JiveServlet/showImage/2-633253-17219/testWithEmails2.png
  
http://community.jboss.org/servlet/JiveServlet/downloadImage/2-633253-17219/450-242/testWithEmails2.png
 
The same as before just using an embedded sub process and introduced two more 
process variables, loopIterations and loopCount.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: [jbpm5] how to use the property 'Content' of the Human Task

2011-10-22 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: [jbpm5] how to use the property 'Content' of the Human Task"

To view the discussion, visit: http://community.jboss.org/message/633135#633135

--
Hello,
As Mauricio said the content parameter is used to pass all info for a specific 
human task, to the human task server. To achieve this you have two main methods,
1. Set data to the Content parameter from the field, as you have done. This way 
you may only pass String data
2. Set data to the Content parameter from a parameter mapping, to pass any type 
of data. Check out the following link,
 
http://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variables
 
http://community.jboss.org/people/bpmn2user/blog/2011/02/21/jbpm5-example-for-forms-with-variables

To access the data you may do it inside the ftl as shown in the link above, or 
via code/API check the following links,
  http://community.jboss.org/message/603362#603362 
http://community.jboss.org/message/603362
  
http://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example
 
http://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to setup Event to stop current execution & "jump" to that node?

2011-10-21 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to setup Event to stop current execution & "jump" to that node?"

To view the discussion, visit: http://community.jboss.org/message/633075#633075

--
Hello,
If i have understood correctly your case, please take a look at the attached 
bpmn for a possible approach. It is not a fully working example just 
showing the concept.

 
http://community.jboss.org/servlet/JiveServlet/showImage/17214/testWithEmails.png
  
http://community.jboss.org/servlet/JiveServlet/downloadImage/17214/testWithEmails.png
 

So the idea is,
1. you send email to some user to do some job
2. you start the timer, to give time to the user to do the job before sending 
next email
3. you check if the user has done the job. This check is done by checking if 
the process variable jobDone has been set to true
4. if it is set, in other words if the job is done, then go down to the process 
for running script and ending the process
5. if the job is not done then send another email and wait for some time
6. check again if the job has been done 
7. if not do the human task and end the process
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Guvnor deployment package Problem

2011-10-20 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Guvnor deployment package Problem"

To view the discussion, visit: http://community.jboss.org/message/632686#632686

--
Hello,
This might sound silly, but have you added these assets (image->pnf file, form 
-> ftl file etc) to the assets of your new package in guvnor??
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to setup Event to stop current execution & "jump" to that node?

2011-10-19 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to setup Event to stop current execution & "jump" to that node?"

To view the discussion, visit: http://community.jboss.org/message/632633#632633

--
Hello,
Maciej what you describe sounds really interesting! I know i might be asking 
too much but i would greatly appreciate if you could provide a rough/draft bpmn 
of what you describe. Also i wonder whether it is possible to design such bpmn 
on any of the designers anyhow it would be great if you could show such a 
bpmn. Thanks
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to setup Event to stop current execution & "jump" to that node?

2011-10-19 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to setup Event to stop current execution & "jump" to that node?"

To view the discussion, visit: http://community.jboss.org/message/632452#632452

--
Hi,
You can simply add some variables to the process (unless you have some facts in 
your knowledge session that you can access within the process) and initialise 
them according to the state you are in, then use exclusive gateways by checking 
their values and acting accordingly.

For example in your case add a boolean variable to your process i.e. 
emailWorkDone, with initial value false. Then if the 2nd path is started and 
completed based on your business logic then you can make the variable true and 
by adding a gateway between each timer and sendemail you can decide whether to 
send another email, by checking the variable, or go to the human task or 
something else
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Starting up jBPM 5.1

2011-10-19 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Starting up jBPM 5.1"

To view the discussion, visit: http://community.jboss.org/message/632449#632449

--
Hello,

If you take a look inside build.xml at the target start.demo you will see that 
all it does is to start jboss, h2, human task, eclipse. So in a 
production/development/staging server environment you will probably use an 
RDBMS that is always started, so no need for start.h2, you will probably not 
care if eclipse is started at your server or even on your system you can start 
eclipse yourself so no need for start.eclipse. Now regarding jboss of course 
you will always need to start jboss, possibly with your own parameters. 
Starting jboss through ant i.e. ant start.jboss is like run from bin folder of 
jboss, however it also sets some parameters (i.e. memory related, bind address 
etc) so you can either set those parameters or your own parameters in run 
script of jboss or simply use the ant mechanism which is pretty flexible and 
straight forward.

So basically all you need is *ant start.jboss* if running from ant or execute 
the jboss run script. Regarding the human task you also have to start it 
because it is a separate java application. So you can either run it localy by 
calling *ant start.human.task*, or you can wrap it in a web application deploy 
it on jboss and no need for ant start.human.task. 

Please note that if you take the human task web application route, in order to 
propertly initialize the users, groups and the database tables (the first 
time), you will have to make an http request to the human task web application 
when the server starts. This is easily done in ant, for example add the code 
below inside the start.jboss ant target just before the closing tag 

+...+
++
++

**
*http://${jboss.bind.address}:yourPort/TaskServiceWebApp"/>*
**
**

http://${jboss.bind.address}:yourPort/TaskServiceWebApp"; 
dest="${install.home}/" />
**

So to conclude,
 either call +ant start.jboss;ant start.human.task;+ or +bin/run .; ant 
start.human.task;+ or +the call to start.human.task can also go inside the run 
script +
or make the human task a web app and just call ant start.jboss with the extra 
code above.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to Complete a WorkItem using REST API

2011-10-13 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to Complete a WorkItem using REST API"

To view the discussion, visit: http://community.jboss.org/message/631502#631502

--
Great, glad everything worked :-) . 
Can you please mark the question as answered? Thanks
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to Complete a WorkItem using REST API

2011-10-12 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to Complete a WorkItem using REST API"

To view the discussion, visit: http://community.jboss.org/message/631386#631386

--
Hi,
I'm very glad to have assisted in any way and thank you very much for your kind 
words.

If you use jbpm-gwt-console-server then you should use the knowledge session 
provided by the console-server, as you have noticed.

At first glance things are not very flexible, but there is a way of extending 
them in a little dirty approach.

To understand the context, the jbpm-gwt-console-server provides a REST API by 
communicating with the jbpm5 API through some integration classes.
The REST API classes as you have spoted are inside the 
jbpm-gwt-console-server.war and the integration classes are in 
org.jbpm.integration.console package of the jbpm5 sources. So in your case 
inside ProcessMgmtFacade (from the REST API) there is a field processManagement 
of type org.jboss.bpm.console.server.integration.ProcessManagement, which has 
another field called delegate of type org.jbpm.integration.console.Delegate. 
The delegate field initialises all jbpm5 knowledge related objects, such as the 
ksession (StatefulKnowledgeSession). So this is what you need
The proble is that it's private and all accessors are either private or not 
really what we could use to extend and somehow get hold of delegate and 
ksession etc.

So the approaches are,
1. Edit the other classes , or inherit from them (i.e. the integration classes) 
and expose the field/methods that would provide what is needed. Then provide 
the new implementations in the already edited ProcessMgmtFacade .
2. Create your own implementation/use of all i.e. your own web services, 
instantiated as in jbpm-gwt-console-server etc so in other words create your 
own little system with jbpm-gwt-console-server as a reference implementation.
3. Use the dirty old reflection in an inappropriate manner  as i show below 
 :) 

So the dirty approach is to use reflection accessing private method/fields  :0 
i.e.
//inside ProcessMgmtFacade in your web method (this is the idea, haven't tested 
this code i write it here directly)

Field fields[] =this.getClass().getDeclaredFields();
for(Field field : fields){
if(field.getName().equals("delegate")){
field.setAccessible(true);
field.get(this);//this will return the delegate object, so you can do the same 
to retrieve the ksession field
}
}

Generally, if there is no other way of doing it properly i.e. via inheritance, 
or accessing some other object that will eventually give access to ksession , 
then the author of this code did not intend to give such access and one has to 
provide his own implementation, possibly by reusing code etc as stated in 
approaches 1 and 2.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to Complete a WorkItem using REST API

2011-10-12 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to Complete a WorkItem using REST API"

To view the discussion, visit: http://community.jboss.org/message/631319#631319

--
Hello,
You can ask the knowledge session to complete a workitem by calling,
ksession.getWorkItemManager().completeWorkItem(workItemId, null);//or instead 
of null a map of parameters

So workItemId would have to be passed to your web service and the web service 
will have to be part of the system that contains the jbpm engine in order to 
have access to the knowledge session.

Whether this approach is correct or not depends on your problem domain, we can 
discuss it if you want.
Generally I believe it is a fine method for delegating the responsibility of 
managing the workings of the engine to some engine related controller. I 
actually use such approach as part of a generic, implemenation independent 
framework.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: The bpmn2 process editor and the guvnor web process editor can`t be compatible freely?

2011-10-05 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: The bpmn2 process editor and the guvnor web process editor can`t be 
compatible  freely?"

To view the discussion, visit: http://community.jboss.org/message/630194#630194

--
Hello everyonetotally agree with Tihomir
we use Eclipse Editor and the Web Designer nicely together, web designer has 
become very stable and the fixes lately have become very rapid.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Query the workflow process definition

2011-10-05 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Query the workflow process definition"

To view the discussion, visit: http://community.jboss.org/message/630192#630192

--
Hello,
You can get any node you like
i.e.
WorkflowProcess workFlowProcess = ((WorkflowProcess) 
knowledgeBase.getProcess("yourProcessId"));
    nodes = workFlowProcess.getNodes();

then you can loop and cast to whatever node you want look at the types in 
package org.jbpm.workflow.core.node i.e. there is a HumanTaskNode etc 
i.e. finding the start node

Node startNode = null;
    for (Node node : nodes) {
    if (node instanceof StartNode) {
    startNode = node;
    }
    }

you can even traverse your process
i.e. call the following method as traverseProcessForHumanTaskNodes(startNode, 
new ArrayList()); then it will return a collection with all the human 
task nodes

public static Collection traverseProcessForHumanTaskNodes(Node startNode, 
Collection nodes) {
/*you can choose on of your outgoing connections based on some logic*/
    Node nextNode = 
startNode.getOutgoingConnections("DROOLS_DEFAULT").get(0).getTo();

    if (nextNode instanceof HumanTaskNode) {
    nodes.add(nextNode);
    } else if (nextNode instanceof EndNode) {
    return nodes;
    }
    return traverseProcessForHumanTaskNodes(nextNode, nodes);
    }

This is just to get you starting with a little debugging you will see that 
everything is connected and you can easily retrieve it.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Query the workflow process definition

2011-09-29 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Query the workflow process definition"

To view the discussion, visit: http://community.jboss.org/message/629300#629300

--
Hello,
Take a look here and the referenced threads
 http://community.jboss.org/message/623594#623594 
http://community.jboss.org/message/623594#623594

it shows how to iterate the process structure... so with the appropriate 
casting of the nodes you may get the info you need.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: jBPM5 : Assign Human task to a Group / Role

2011-09-29 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: jBPM5 : Assign Human task to a Group / Role"

To view the discussion, visit: http://community.jboss.org/message/629299#629299

--
Hello,
just specifying the groupid and
this code 
client.getTasksAssignedAsPotentialOwner("actorId", groups, "en-UK", 
taskSummaryResponseHandler); 
is enough.
Make sure that you have added the groups and users to the task session i.e. 
from  
https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/java/com/test/BaseHumanTaskTest.java
 
https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/java/com/test/BaseHumanTaskTest.java
.
session.addUser(new User(testUser));
*
*

session.addGroup(new Group(testGroup));
 Also make sure the database table OrganizationalEntity contains them.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Second login Screen on remote access

2011-09-01 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Second login Screen on remote access"

To view the discussion, visit: http://community.jboss.org/message/624246#624246

--
Hello,
You are right since jbpm5.1 drools.xml has been renamed to jbpm.xml and it is 
located in designer.war\profiles.
As for the changeset.xml indeed there is only one.
Finally you'll have to also fix the address and port in the two classes 
(org.drools.guvnor.server.contenthandler.BPMN2ProcessHandler,org.drools.guvnor.server.GuvnorAPIServlet)
 of guvnor, as metnioned in that thread.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: BIRT reports "wrong username and password" error

2011-08-31 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: BIRT reports "wrong username and password" error"

To view the discussion, visit: http://community.jboss.org/message/623985#623985

--
Hi,
Try openning up the reports and check out the connection properties in there. 
The reports are in jbpm-gwt-console-server.war within WEB-INF\classes, they are 
the rptdesign files and their format is xml.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Add jsp or html form to user-task without using guvnor

2011-08-30 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Add jsp or html form to user-task without using guvnor"

To view the discussion, visit: http://community.jboss.org/message/623770#623770

--
Hello,
Let's say that as part of your web application you have a page where a user 
will have access to his/her tasks.
So what you need to do is when the user visits that page (i.e. jsp page) the 
servlet/bean (or whatever) associated with the jsp will have to retrieve the 
tasks for that user and give them to the jsp to display i.e. a table/grid with 
all the tasks of that user and the option to select a specific task.

Retrieving the tasks is accomplished by communicating with the human task 
service and when the user selects a task (i.e. by click a button right by the 
task entry of the grid, or the grid row etc) you will present a jsp/html/ajax 
(or whatever) page representing that task. The details regarding the task i.e. 
its parameters, name of the task etc will also be retrieved from the task 
service as well as the signal for completion. The button that completes the 
task on the page that you will present will have to call the api related to 
completing a human task.

Having this idea in mind look at the api code related to communicating with the 
human task service (for getting the tasks for a user, starting the task, 
completing the task),
 
http://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example
 
http://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example
 http://docs.jboss.org/jbpm/v5.1/userguide/ch.Human_Tasks.html#d0e3412 
http://docs.jboss.org/jbpm/v5.1/userguide/ch.Human_Tasks.html#d0e3412
access task variable -  http://community.jboss.org/message/603579#603579 
http://community.jboss.org/message/603579
another thread -  http://community.jboss.org/message/606050#606050 
http://community.jboss.org/message/606050
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to retrieve the current workitem (or node)?

2011-08-29 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to retrieve the current workitem (or node)?"

To view the discussion, visit: http://community.jboss.org/message/623594#623594

--
Hi,
Yes exactly, you could retrieve the active nodes and then all the nodes and 
compare them until you find the active ones.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to retrieve the current workitem (or node)?

2011-08-29 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to retrieve the current workitem (or node)?"

To view the discussion, visit: http://community.jboss.org/message/623520#623520

--
Hi,
If you want to retrieve all nodes of the process (besides the active ones ; i 
guess you try to display a percentage of completion or at what stage of the 
process you're at ) you can use the KnowledgeBase object and getProcess(..) 
, cast to WorkflowProcess and call getNodes().
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to retrieve the current workitem (or node)?

2011-08-29 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to retrieve the current workitem (or node)?"

To view the discussion, visit: http://community.jboss.org/message/623488#623488

--
Hello,

Take a look here please,
 http://community.jboss.org/thread/171322 
http://community.jboss.org/thread/171322
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Second login Screen on remote access

2011-08-29 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Second login Screen on remote access"

To view the discussion, visit: http://community.jboss.org/message/623482#623482

--
Hello,
There is a number of steps you have to take in order to make the installation 
work on an address other than localhost and a port other than 8080.
Please take a look here,
 http://community.jboss.org/message/606702#606702 
http://community.jboss.org/message/606702
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: JBPM5 Starting Guvnor process question

2011-08-29 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: JBPM5 Starting Guvnor process question"

To view the discussion, visit: http://community.jboss.org/message/623477#623477

--
Hello,
The processes that you create are stored in Guvnor repository. These processes 
have to be accessed and started, as a result orchestrated, by the jbpm engine. 
You have two choices,
1. Use your own instance of the engine with your own configuration etc ( for 
example the code you have posted).
2. Use 'jbpm-gwt-console-server, which is a web application having all code and 
configurations needed for the jbpm engine to run.

I understand that whatever the approach, you want a "fire and forget" solution. 
Such a solution is achieved by running an application as a service (i.e. run 
constantly and listen on a port of your system - not very nice) or as a server 
(i.e. create web application and deploy on an application server like jboss - 
then you have to use http calls to communicate with it - i.e. web services). 
Approach 2 above is ready out of the box (you have the engine running on a 
server and the communication methods - REST API - ready for you)  and you have 
to communicate via REST.

p.s. whatever the approach you will be getting all your definitions and 
resources from the repository of Guvnor
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Error debugging on clean install

2011-08-29 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Error debugging on clean install"

To view the discussion, visit: http://community.jboss.org/message/623407#623407

--
Hello,
The human task is run from the compiled sources that come within the 
installation. So i think you have to make sure that whatever jdk is used to 
compile the sources (the compilation takes place when you run target 
start.human.task check it out in the build.xml, task javac) the same or higher 
version of jre must run the classes. There might be a conflict or mix up with 
the JREs / JDKs you have installed. If that is the case I would advice to 
uninstall them all and just install one version, if it is possible.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Error debugging on clean install

2011-08-26 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Error debugging on clean install"

To view the discussion, visit: http://community.jboss.org/message/623213#623213

--
Hello,
The first three lines just notify that there is no binding for sl4j.
I would focus on this "java.lang.IllegalArgumentException: Could not connect 
task client" have you started the human task service??
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: JBPM v5 & MySQL Persistence Problem

2011-08-25 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: JBPM v5 & MySQL Persistence Problem"

To view the discussion, visit: http://community.jboss.org/message/622896#622896

--
Well then all you have to do is modify (with a schema created in mysql and 
username/password with full rights on that schema) all the persistence.xml and 
hibernate.cfg.xml files found in,
- jbpm-gwt-console-server.war META-INF
- jbpm-gwt-console-server.war lib/jbpm-human-task-5.1.0.Final.jar META-INF
- jbpm-gwt-console-server.war lib/jbpm-bam-5.1.0.Final.jar META-INF
- jboss datasource i.e. testDS1-ds.xml
- jbpm-human-task-5.1.0.Final.jar and jbpm-bam-5.1.0.Final.jar in the runtime 
used by the human task

By the time jboss and the human task start all tables will be created.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: JBPM v5 & MySQL Persistence Problem

2011-08-25 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: JBPM v5 & MySQL Persistence Problem"

To view the discussion, visit: http://community.jboss.org/message/622890#622890

--
Hello,
I'm using mysql and i have dialect property org.hibernate.dialect.MySQLDialect, 
do you want to give it a try?
If no success, then please tell me if the table SessionInfo has been created 
under the database jbpm5db.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - display process diagram

2011-08-25 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"display process diagram"

To view the discussion, visit: http://community.jboss.org/message/622889#622889

--
Hello,
I'm using jbpm5.1 and i noticed that when i add extra nodes to a process, 
jbpm-console throws an exception (Could not find info for node new_id_of_node 
of process the_process_id) when trying to display the diagram at the point of 
reaching the new node.

Has anyone else noticed this??

Basically what happens is that 
org.jbpm.integration.console.graph.GraphViewerPluginImpl has already 
initialised kbase variable and within its method getDiagramInfo() ,the kbase 
does not return the new bpmn diagram containing the new node. Everything else 
works fine as it is normally updated, except the kbase of this class. If it 
doesn't happen to anyone else then it's maybe my configs and i apologise.

However if this is the case one possible solution would be to make kbase=null 
and call getDiagramInfo() after having checked first the bpmn file as is and 
before throwing the exception i.e. right before line 93 of method 
getActiveNodeInfo() where the check if (!found) {} 
Any other ideas??

Thanks
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: not able to login as a new user in jbpm console

2011-08-25 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: not able to login as a new user in jbpm console"

To view the discussion, visit: http://community.jboss.org/message/622878#622878

--
Hello,
The procedure should be as described here,
 http://community.jboss.org/message/610049#610049 
http://community.jboss.org/message/610049
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: jBPM5 Process History

2011-08-17 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: jBPM5 Process History"

To view the discussion, visit: http://community.jboss.org/message/621534#621534

--
Yes, you can either modify jbpm-bam-.jar or add a listener to your 
processes.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: ProcessMgmtFacade.java - Custom REST Call

2011-08-15 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: ProcessMgmtFacade.java - Custom REST Call"

To view the discussion, visit: http://community.jboss.org/message/621035#621035

--
Hello,
In order to add your own REST API all you have to do, more or less, is to add 
classes with jax-rs annotations specifying the urls of your services (take a 
look at the existing ProcessMgmtFacade as well as the modifications done  by 
priyakpandey to get the idea), in addition take a look in web.xml entries 
related to jax-rs and resteasy you might need to add something related to your 
additional url paths. Maybe also add your classes in 
jax-rs Application class org.jboss.bpm.console.server.ConsoleServerApplication 
as singleton (check the code of ConsoleServerApplication regarding the other 
jax-rs classes).

Since you use the gwt-console-server API you'll need the objects created inside 
ProcessMgmtFacade so if you want to change existing functionality the simplest 
approach is to modify that (by adding new methods or changing existing ones as 
described in  http://community.jboss.org/message/612597#612597 
http://community.jboss.org/message/612597). 

If you want to use your own class to override functionality you could extend 
ProcessMgmtFacade with your own class and add all your new logic there. However 
in order to overide the urls you would have to define the same jax-rs paths in 
your file and maybe remove the same ones from ProcessMgmtFacade and probably 
have to modify the jax-rs Application class 
org.jboss.bpm.console.server.ConsoleServerApplication to add your class as 
singletonhaven't tried it to be honest and it gets a little messy. 

The fact is that on each update of jbpm, since you use the gwt-console-server, 
whether you make the changes in the existing code or on your own file, you will 
either have to make those changes or add your file each time. Not a good 
practice for large scale changes etc indeed but  unfortunately no other 
extension points, to the existing REST API system i think.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: jBPM5 Process History

2011-08-15 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: jBPM5 Process History"

To view the discussion, visit: http://community.jboss.org/message/621027#621027

--
Hello,
History info / auditing takes place in the jbpm-bam-.jar so you can either 
modify that or use its persistence classes or your own along with a custom 
ProcessEvenetListener object, for doing auditing actions (i.e. adding custom 
info), added to each of your processes.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: How to cancel Timer Event

2011-07-18 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: How to cancel Timer Event"

To view the discussion, visit: http://community.jboss.org/message/615871#615871

--
Hello,
One simple approach could be to use a parameter as a flag (i.e. boolean timeout 
) within your process and then simply raise it or not when completing the logic 
of your process (i.e. right before exiting) or after the timer node. Then at a 
gateway check the flag's value and decide whether you should raise an exception 
or not.

In addition a quote from the documentation  
http://docs.jboss.org/jbpm/v5.1/userguide/ch05.html#sec.timers 
http://docs.jboss.org/jbpm/v5.1/userguide/ch05.html#sec.timers "+The timer is 
cancelled if the timer node is cancelled (e.g., by completing or aborting the 
enclosing process instance).+" . Actually you don't need to cancel a timer 
event if it is part of your process logic, instead use your logic inside your 
process to act accordingly (i.e. as instructed above).
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: BPM tools comparison - jBPM advantages

2011-07-18 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: BPM tools comparison - jBPM advantages"

To view the discussion, visit: http://community.jboss.org/message/615865#615865

--
Hello,
We use in our systems, jbpm because of drools. We had worked with drools in the 
past and it is a strong and proven platform. So not only because of the ability 
to add rules, but due to the fact that drools architecture is in the core of 
jbpm, hence they share sessions, objects, rules, facts etc. all this makes it 
quite powerfull.
In addition i also like the way that human tasks and custom services are 
handled and created. Everything seems straightforward, modular and flexible.

However, i must admit that Activiti is really powerfull as well and we keep 
evaluating both as releases come out. The toolset of Activiti is pretty 
powerful so due to the fact that both platforms use the bpmn2 standard we try 
to combine both technologies to some extend.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: Human Task Listener

2011-07-18 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: Human Task Listener"

To view the discussion, visit: http://community.jboss.org/message/615862#615862

--
Hello,
You could add an event listener (i.e. ProcessEvenetListener) to your knowledge 
session. Then when a process would arrive at a node which is a human task you 
could notify your users that a task is available.
This of course does not replace MinaTaskService or any other human task service 
which is used to retrieve the available human tasks and their states etc. they 
simply work together.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: problem about running jbpm5

2011-07-18 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: problem about running jbpm5"

To view the discussion, visit: http://community.jboss.org/message/615858#615858

--
Hello,
The process evaluation has the following three parts,
1. The process file (evaluation.bpmn) located inside the installer directory 
under the folder sample, within the resources folder.
2. The process image file (com.sample.evaluation.png) located in the 
jbpm-gwt-graph-5.1xx.jar which is inside the jbpm-gwt-console-server war file
3. The process human task files (com.sample.evaluation.ftl and Performance 
Evaluation.ftl) which are located in the jbpm-gwt-form-5.1xx.jar which is also 
inside the jbpm-gwt-console-server war file
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: passing objects between tasks

2011-07-18 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: passing objects between tasks"

To view the discussion, visit: http://community.jboss.org/message/615846#615846

--
Hello,
Check out the following link
 
http://community.jboss.org/people/bpmn2user/blog/2011/03/30/jbpm5-example--human-task-forms-with-variables--workitems
 
http://community.jboss.org/people/bpmn2user/blog/2011/03/30/jbpm5-example--human-task-forms-with-variables--workitems

Also look at bpmn2user's blog it has many useful examples.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM] - Re: problem about running jbpm5

2011-06-28 Thread Chris Melas
Chris Melas [http://community.jboss.org/people/melc] created the discussion

"Re: problem about running jbpm5"

To view the discussion, visit: http://community.jboss.org/message/612285#612285

--
Hello,
It seems that a lot of classes are not found... so have you included along with 
your jars the jars that your code is using? You need to include your jars and 
the jars of other libraries you are using as well.
--

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   >