[jboss-user] [JBoss jBPM] - JobExecutor Problem

2007-03-29 Thread jits_1998
In JobExecutor, Pending jobs are being retrieved using acquireJobs() by opening 
new JbpmContext and it is closed in the end.
acquireJobs() is returning list of acquiredJobs. Job contains lazy node,token 
and taskIntance

In executeJob(), When execute() is called on job. It tries call execute() on 
node, which is a lazy instance. As the session which has retrieved job in 
acquireJobs() has been closed. Following exception is being thrown.

Exception in thread "main" ERROR - could not initialize proxy - the owning 
Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the 
owning Session was closed
at 
org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:53)
at 
org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:84)
at 
org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:134)

This can be resolved by reloading job in executeJob(). There is a line of code 
for this purpose

  | jobSession.loadJob(job.getId());
  | 

But, here loaded job is not assigned to Job.

Any comments on how to overcome this problem.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032682#4032682

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032682
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Problems with deleting a process instance of a complex proce

2006-11-07 Thread jits_1998
Hi,

We have a complex process with multiple sub-processes, tasks and multiple child 
tokens in the subprocesses.

We found that GraphSession.deleteProcessInstance() method is unable to delete 
the process instance.
It falls short on following points:
1) It is not deleting the taskinstances, though it creates the query but it is 
never executed.
2) It is not deleting the sub-process and their child tokens, which are not 
refered by "token.getSubProcessInstance".

Here is an updated version of deleteProcessInstance() that works for us:

  | public void deleteProcessInstance(ProcessInstance processInstance, boolean 
includeTasks, boolean includeJobs) {
  | if (processInstance==null) throw new JbpmException("processInstance 
is null in JbpmSession.deleteProcessInstance()");
  | try {
  |   // find the tokens
  |   Query query = 
session.getNamedQuery("GraphSession.findTokensForProcessInstance");
  |   query.setEntity("processInstance", processInstance);
  |   List tokens = query.list();
  |   
  |   // deleteSubProcesses
  |   Iterator iter = tokens.iterator();
  |   while (iter.hasNext()) {
  | Token token = (Token) iter.next();
  | deleteSubProcesses(token);
  | 
  |   }
  | 
  |   // jobs
  |   if (includeJobs) {
  | query = 
session.getNamedQuery("GraphSession.deleteJobsForProcessInstance");
  | query.setEntity("processInstance", processInstance);
  | query.executeUpdate();
  |   }
  |   
  |   // tasks
  |   if (includeTasks) {
  | query = 
session.getNamedQuery("GraphSession.findTaskInstanceIdsForProcessInstance");
  | query.setEntity("processInstance", processInstance);
  | List taskInstances = query.list();
  | if(taskInstances.size()>0){
  | List taskInstancesId = new ArrayList();
  | for(Object ti: taskInstances)
  | {
  | taskInstancesId.add(((TaskInstance)ti).getId());
  | }
  | query = 
session.getNamedQuery("GraphSession.deleteTaskInstancesById");
  | 
query.setParameterList("taskInstanceIds",taskInstancesId);
  | query.executeUpdate();
  | }
  | 
  | 
  |   }
  |
  |   // delete the logs for all the process instance's tokens
  |   query = session.getNamedQuery("GraphSession.selectLogsForTokens");
  |   query.setParameterList("tokens", tokens);
  |   List logs = query.list();
  |   iter = logs.iterator();
  |   while (iter.hasNext()) {
  | session.delete(iter.next());
  |   }
  |   
  |   iter = tokens.iterator();
  |   while(iter.hasNext()){
  |   Token token = (Token)iter.next();
  |   if(processInstance.getRootToken().getId()!= token.getId())
  |   session.delete(token);
  |   }
  |   
  | 
  | 
  |   // then delete the process instance
  |   session.delete(processInstance);
  |   
  | } catch (Exception e) {
  |   e.printStackTrace(); 
  |   log.error(e);
  |   throw new JbpmException("couldn't delete process instance '" + 
processInstance.getId() + "'", e);
  | } 
  |   }
  | 

The "ProcessSession.findSubprocessByToken" query is as follows:

  |  select pi
  |   from org.jbpm.graph.exe.ProcessInstance as pi
  |   where pi.superProcessToken = :token
  | 

Hope it helps... I have not checked Jira for any such known issues, please let 
me know if I need to raise this ticket.

Regards,
Jitendra

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984006#3984006

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984006
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: task priority not persisted, small BUG.

2006-09-28 Thread jits_1998
does this priority get used anywhere?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974792#3974792

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974792
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Variable Controler

2006-09-28 Thread jits_1998
TaskVariablesDbTest in the src code test cases explains how to put data in your 
task instances.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974790#3974790

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974790
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Regarding variable in jbpm

2006-09-28 Thread jits_1998
TaskVariablesDbTest in the source code test cases demonstrates this.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974789#3974789

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974789
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Regarding processdefinition

2006-09-28 Thread jits_1998
Download the src code. It comes with scores of test cases to demostrate the 
possiblities in jbpm.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974788#3974788

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974788
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Storing variable instances in db

2006-09-22 Thread jits_1998
Ok. I figured out or rather stumbled on the mechanism.

There is something called "inverse='true'" in hibernate mappings which somehow 
makes it possible to store.

Not sure of the exact mechanism but i am sure its somewhere in the hbm xmls.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973502#3973502

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973502
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Multiinstances of the same process

2006-09-20 Thread jits_1998
Well if the process definition is different for each of the portlets then you 
cannot get the instances.

Ideally, you should deploy the process definition and each of your portlets 
should be creating an instace of the definition, then after saving the process 
instances created by the portlets, each portlet will be able to look up the 
instances created by other portlets.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972899#3972899

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972899
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Multiinstances of the same process

2006-09-20 Thread jits_1998
Looking at the code it appears, as alex pointed out, you have not deployed the 
process definition.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972865#3972865

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972865
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Multiinstances of the same process

2006-09-20 Thread jits_1998
Post the console log and code for us to see.

Try and get only the relevant portion.

Also, are all the three instances actually saved in db? Can you do a "select * 
from jbpm_processinstance".

If this does not return anything, you can try closing the jbpmContext after 
saving the process instance and then open a new one to get the graph session 
and use this graphsession to search for process instances.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972860#3972860

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972860
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Multiinstances of the same process

2006-09-19 Thread jits_1998
graphSession.findProcessInstances(processDefinitionId) ?

this does not work for you?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972550#3972550

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972550
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Storing variable instances in db

2006-09-18 Thread jits_1998
hi,

I have a question regarding persisting Variable instances in the db. After 
spending time with the src code i am unable to determine how the variable 
instances are stored at the time of storing of process.

They appear to be stored when we persist the logging info for variables.

Thanks for your help in advance..

cheers!
Jitendra

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972210#3972210

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972210
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: newbie questions

2006-09-15 Thread jits_1998
Heyi,

Welcome to the world of jbpm :-).

We can store the process defitions directly in the db, which is essentially the 
content of PAR file. So you do not need to put the PAR file (I don't do it).

There is a set of extensible services that will help you query database for 
everything related to processes.

All the process related information is eventually stored in database, I am not 
aware of any other mechanism of storing the information.

hope this answers some of your questions.. 

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971906#3971906

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971906
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Oracle exception deploying process

2006-09-15 Thread jits_1998
There will be a hibernate.properties file in the jbpm core download.

We need to update that, as during the build the properties for the datasource 
are picked from there and updated into hibernate.cfg.xml.

I have messed around too much with my core to guide you to exact solution. But 
I was able to stop the replacement of data by modifying the build file.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971904#3971904

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971904
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-15 Thread jits_1998
You can do this just after creating the processinstance so that the process 
instance id is filled and hence allows you to differentiate between process 
instances.

AFAIK there is no method to search for unfinished process instances. But this 
does/should not stop you from writing one of your own :-)

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971864#3971864

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971864
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-15 Thread jits_1998
okay got it.

Process instance id is generated after the process instance is stored in the db.

So to start using the process instance id you need to use:

  | Step 1: org.jbpm.JbpmContext.save(ProcessInstance)
  | Step 2: org.jbpm.JbpmContext.loadProcessInstanceForUpdate(long)
  | 


hope it helps..

cheers!


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971853#3971853

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971853
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: jBPM notification of process instance completion (w/o ha

2006-09-15 Thread jits_1998
Hi Brad,

How about using your own custom end-state node? 

It can have an action that will do the notify bit and anyone configuring the 
app will just need to specify the end-state as usual.

cheers!


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971849#3971849

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971849
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Storage of process variables outside jbpm?

2006-09-15 Thread jits_1998
hi Meeru77,

There is an WIP class called org.jbpm.db.ContextSession . The purpose of that 
class is to take care of issues like searching for a process instance based on 
variable instances.

You can update that class with thi query, that IMO will be an approach more in 
line with jbpm line of thinking.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971847#3971847

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971847
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: CommandExecutorThread not started in Jbpm3.1, Jboss4.0.3

2006-09-14 Thread jits_1998
The command executor thread is expected to be running for any signal processing 
to happen in async environment.

There is no configuration required to run it. AFAIK.

Can you specify which version of jbpm are you using?

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971844#3971844

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971844
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-14 Thread jits_1998
The processID is process instance id or process definition id ? process 
definition id has to and will be same. process instance id will be different 
unless you are searching for the process instance by id.

two ways to do this:
1) Copy task instance to a reference outside
2) search for task instance from task mgt session.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971502#3971502

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971502
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Have the same JBPM context in multiple instance of a pro

2006-09-13 Thread jits_1998
org.jbpm.db.GraphSession.findProcessInstances(long processDefinitionId)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971258#3971258

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971258
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Have the same JBPM context in multiple instance of a pro

2006-09-13 Thread jits_1998
Jbpmcontext is specific to a processInstance. 

So it will be  different for each process instance. 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971237#3971237

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971237
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-13 Thread jits_1998
In an authenticated environment, the actorId is set into the authentication 
service by jbpmcontxt using this method. 

Then when we call jbpmContext.getTaskList(), it returns the task list of the 
authenticated user. In case you want to get the task list for any other user 
you have to use taskmgtSession.findTaskInstances(actorId).

Read the code, its all there :-)

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971227#3971227

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971227
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Installing JBPM without using starter kit

2006-09-13 Thread jits_1998
Do you see a jbpm.war in the jboss console?

It appears that jboss is running fine, but for some reasons its not letting you 
deploy the app. 

Try putting the war
anonymous wrote : 
  | D:\Binaries\jbpm-3.1.2/build/jbpm.war
  | 

into jboss jbpm config deploy folder.

This should work as long as the war file was successfully created.

Also you will need to run create-db task in the deploy.build.xml. 

Regards,
Jitendra


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971226#3971226

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971226
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Installing JBPM without using starter kit

2006-09-13 Thread jits_1998
anonymous wrote : Server returned HTTP response code: 500

this means there is some error on server side. Can you examine the server log 
also. 

Also confirm that you are able to access jboss console.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971203#3971203

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971203
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Installing JBPM without using starter kit

2006-09-13 Thread jits_1998
Please post only the relevant section. It was cut-off due to the length of the 
content.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971199#3971199

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971199
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-13 Thread jits_1998
Well to know what task is from which process instance, you either need to print 
the date or soemthing, or else just put some variables in the context instance 
and copy them to task controller.

Go thru the api of TaskInstance for some ideas.

Also try and spend some time reading the code, a major advantage of open source 
for us beginners is to read the code and get ideas from it for improving our 
implementation.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971194#3971194

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971194
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Installing JBPM without using starter kit

2006-09-13 Thread jits_1998
Please run the ant with verbose option and copy it here.

Also, please check that you are able to access the jboss console using 
http://localhost:8080/

cheers!
Jitendra

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971192#3971192

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971192
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-12 Thread jits_1998
Use this:


  | jbpmContext.getTaskMgmtSession().taskMgmtSession.findTaskInstances("ernie");
  | 

Let me know if this works.

swimlane.getTasks should be used to find tasks defined for the swimlane in the 
process definition. It will not give the pending tasks in various process 
instances..which is what we are trying to find here. Sorry for the confusion.

cheers!



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971008#3971008

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971008
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-12 Thread jits_1998
We must go back and have a look at how the sample web app that comes with jbpm 
is handling it.

Have a look at it, I will also refresh it.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971006#3971006

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971006
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Installing JBPM without using starter kit

2006-09-12 Thread jits_1998
Is your jboss running when you try to deploy the app?

It should be.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971003#3971003

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971003
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: saving own objects with Hibernate in jbpm

2006-09-12 Thread jits_1998
Is your problem similar to this?

 http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971000#3971000 

I think it is. Lets wait for a solution from someone on this.

I am also just a couple of weeks old jBPM user.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971002#3971002

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971002
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-12 Thread jits_1998
I think we are confused here somewhere.

When we are creating a business process, we will have multiple instances of a 
particular process running in different stages. In which a lot of different 
tasks will be pending on different users 

When you want to see tasks assigned to a particular swimlane/user, we must use 
swimlane.getTasks()

And, if we want to see the total number of tasks created/pending in a 
particular process instance then we use 
getTaskMgmtInstance().getUnfinishedTasks(token)

hope it helps..

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970989#3970989

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970989
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-12 Thread jits_1998
I don't think it makes much sense to know the future tasks, because what tasks 
will get executed depends on the process definition and the actual flow taken 
by the process instance.

So even if we can find a list of next tasks, only some of them may be executed.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970962#3970962

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970962
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to Add Controller's variable in event's action?

2006-09-12 Thread jits_1998
Ah oh!

An overlook on my part.

We cannot add controller to the event driven tasks. Controller is only allowed 
in task-nodes.

Try on saving in the context instance from the executionContext, you can use 
some kind of naming convention like ,username>-- to 
keep track of the user name.

hope this one helps...

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970954#3970954

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970954
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to Add Controller's variable in event's action?

2006-09-12 Thread jits_1998
TaskController maintains an arraylist of variable access, modifying this list 
will let u add/remove the variables in the task controller.


  | TaskController.setVariableAccesses(List variableAccesses)
  | 

hope it helps..

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970941#3970941

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970941
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Help getting a condition to work

2006-09-12 Thread jits_1998
Heyi earnie,

Is this allowed ?


  |
  |   Is
  | 
  | 

I think variable tag can only declare the variable.

If you can post the exception that will be helpful to us.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970934#3970934

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970934
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How logging me in as a user in JBPM (swimlane)

2006-09-12 Thread jits_1998
heyi,
As Far As I Know (AFAIK) jBPM does not do any kind of checks while signaling a 
token on whether the person who has been assined is signalling.

The way this is controlled in the sample web-app is by showing only my tasks to 
me on login so that i can signal or act on only my tasks. 

In other words this should be controlled by access to particular task by UI or 
other means rather than by the signal command.

Hope it helps..

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970929#3970929

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970929
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: swimlane and taskinstances

2006-09-11 Thread jits_1998
sorry . the ones that were ended with "end-tasks='true'" will return true for 
"hasEnded" method.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970732#3970732

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970732
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: swimlane and taskinstances

2006-09-11 Thread jits_1998
okay..

Digging a little deeper and i found that all task instances will show up, that 
were created for this process definition. If you see taskInstance.hasEnded() 
for each task instance, then the one that was ended by "end-tasks='true'" will 
show as false.

Try using "taskMgtIntance.getUnfinishedTasks(token)". This should give you a 
list of tasks that are unfinished.

cheers!



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970730#3970730

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970730
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: swimlane and taskinstances

2006-09-11 Thread jits_1998
Try this:


  | "
  |   
  |   
  |"+""+
  |""+
  | 

This will end all task instances created in the node, so after this node there 
should be no instances assigned to 'Assurimo' swimlane.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970718#3970718

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970718
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: swimlane and taskinstances

2006-09-11 Thread jits_1998
Hi,

I looked at your process definition, it appears that it needs some sorting to 
be  done on itself.

currently, "ControlePrime" node has 3 outgoing nodes from it, which do not make 
much sense if you are only using signal().

Can you please explain in steps as to what you want to achieve, especially @ 
ControllePrime node. Is it supposed to act as a decision node?

cheers!
Jitendra

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970684#3970684

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970684
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Add Value to Control Variable from Application.

2006-09-11 Thread jits_1998
heyi Ani,

How about using processInstance.getContextInstance() to store the variables as 
key value pairs ?

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970680#3970680

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970680
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: swimlane and taskinstances

2006-09-11 Thread jits_1998
hi,

Please post the process definition, for us to be able to help you better.

If I am getting the problem right, then the task instances are hanging on after 
the node has executed. 

I think the problem is that the task instances are not ending. We need to 
explicitly set "end-tasks" to true for tasks to end or call taskInstance.end().

cheers!



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970677#3970677

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970677
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: saving own objects with Hibernate in jbpm

2006-09-08 Thread jits_1998
Heyi Jerome,

Can you explain a bit more as to where you are using the custom objects? Is it 
custom module instance or custom objects stored in context instance .. or is it 
custom nodes ??

have a look at this :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970268#3970268

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970414#3970414

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970414
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Document attachment possible ?

2006-09-07 Thread jits_1998
Hi,
jBPM comes with a module definition called FileDefinition. This can be used 
to attach multiple files to a process.

cheers!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970276#3970276

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970276
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Possible bug in fork-joins

2006-09-06 Thread jits_1998
I do not think its possible to decouple them completely. But will get some 
ideas on partial de-coupling, by reading the execute method of the Join.

It comes with some options like activating/executing the join on:
1) first token arrival, i.e. discriminator
2) n count token arrival, i.e. nOutOfM
3) it allows for a script to be placed in the join tag of process definition 
xml.
4) can specify exact names of the tokens to expect for activation.
5) simple plain vanilla complete coupling.

thats all for AUTOMATIC decoupling.. or you can write a spl join that will 
check for all active child tokens to be arriving for a join to be 
executed/activated.

hope it helps...


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969707#3969707

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969707
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Running multiple JBPM engines

2006-09-05 Thread jits_1998
How about clustering

I beleive jbpm will support clustering. 

If someone from jboss can answer this it will help me too, as we are probably 
going to need some clustering ourselves.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969633#3969633

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969633
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Running multiple JBPM engines

2006-09-05 Thread jits_1998
Hi Micheal,

I am not a hibernate expert, but based on my knowledge of jbpm and doing some 
debugging on it, here is my view.

I see a lot of performance issues owing to a large number of threads created by 
ehcache in hibernate. Also having multiple CommandExecutorThread will be taxing 
on the system.

Could you elaborate on why would you not want the same engine to handle 
multiple process definitions... according to some other post in the forum jbpm 
can handle about 100,000 transactions in a day on a simple laptop.





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969567#3969567

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969567
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: NullPointerException in Eclipse Graph

2006-09-05 Thread jits_1998
Hi Earnie,

I am using the latest jbpm 3.1.2 and do not see the problem you are facing.

Any specific reasons for not using the latest 3.1.2?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969565#3969565

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969565
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Possible bug in fork-joins

2006-09-05 Thread jits_1998
Hi,

The fork and join work in tandem, the join expects exact number of incoming 
transitions as the fork sent out.

In the code above you have fork 1 giving out 2 and fork 2 splitting one into 2 
and all three then meeting into the single join.

To get this to work it will need another join to be added after fork2 and the 
output from it will go into join1.

something like:



  | public static ProcessDefinition createForkJoinProcessDefinition() {
  | ProcessDefinition pd = new ProcessDefinition(
  |   new String[]{"start-state start",
  |"fork f1",
  |"state s1",
  |"fork f2",
  |"state s2",
  |"join j1",
  |"join j2",
  |"state s3",
  |"end-state end"},
  |   new String[]{"start --> f1", "f1 --to_s1--> s1", "f1 --to_j1_1--> j1",
  |"s1 --> f2", "f2 --to_j2_1--> j2", "f2 --to_s2--> s2",
  |"s2 --to_j2_2--> j2","j2 --to_j1_2-->j1", "j1 --> s3", 
"s3 --> end"});
  | return pd;
  |   }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969561#3969561

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969561
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user