[jboss-user] [JBoss jBPM] - Re: Accessing the parent/super execution from a subprocess e

2009-08-14 Thread shekharv
What was I thinking! I read multiple posts and then got back to this, so lost context, didn't see that you already had the solution for the timebeing. And yes, that should become part of the API, although I think we should clearly specify that in the JIRA. :) View the original post : http://w

[jboss-user] [JBoss jBPM] - Re: Accessing the parent/super execution from a subprocess e

2009-08-13 Thread shekharv
@flavio.doze Do you think you can setup a test case? Can you add a log statement to your assignment handler and check what value you are getting for this? logger.debug(((ExecutionImpl) execution).getSuperProcessExecution().getKey()); View the original post : http://www.jboss.org/index.html?mo

[jboss-user] [JBoss jBPM] - Re: task searches - best practice

2009-08-12 Thread shekharv
Where are you storing the information that a task belongs to a particular state? You can always use Hibernate to query any table in any manner for the jbpm tables. There is of course the TaskQuery interface, but you can take a similar approach if you like that(maybe extend the interface? it

[jboss-user] [JBoss jBPM] - Re: Integration problem of jBPM 4, Spring and Hibernate

2009-08-05 Thread shekharv
You would have to post your jbpm configuration too please, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248170#4248170 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248170

[jboss-user] [JBoss jBPM] - Re: Integration problem of jBPM 4, Spring and Hibernate

2009-08-03 Thread shekharv
or this: | | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247651#4247651 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247651 ___ jboss-user ma

[jboss-user] [JBoss jBPM] - Re: Integration problem of jBPM 4, Spring and Hibernate

2009-08-03 Thread shekharv
OK, looked closer, try this: | | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247650#4247650 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247650 _

[jboss-user] [JBoss jBPM] - Re: Integration problem of jBPM 4, Spring and Hibernate

2009-08-03 Thread shekharv
It says there is a ClassNotFoundException. How are you adding jbpm to the classpath? Are you sure it is there? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247649#4247649 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [JBoss jBPM] - Re: Problems with indexes in jbpm.history.hbm.xml

2009-07-31 Thread shekharv
I get the same error when running the script for ORacle. Error starting at line 305 in command: create index IDX_HDETAIL_HACTI on JBPM4_HIST_DETAIL (HACTI_) Error at Command Line:305 Column:53 Error report: SQL Error: ORA-01408: such column list already indexed 01408. 0 - "such column list a

[jboss-user] [JBoss jBPM] - Re: Metadata to workflow deployment

2009-07-27 Thread shekharv
Personally, I would avoid adding columns to the existing tables themselves, again this rule DOES not apply to all, but if anything were to change within jbpm you could be potentially impacted. Which could be a fairly big problem for some. So coupling one's own data with jbpm is a little riskier

[jboss-user] [JBoss jBPM] - Re: notification to the user of specific role.

2009-07-25 Thread shekharv
Depending on how you are implementing the whole identity management part, you might want to invoke this kinds of things in the the events that get triggered when a certain api call is made in jbpm4. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4246012#424601

[jboss-user] [JBoss jBPM] - Re: About Spring-integeration of JBPM4 with Spring 2.5

2009-07-25 Thread shekharv
meant developers guide. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245989#4245989 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245989 ___ jboss-user mailing list jboss-u

[jboss-user] [JBoss jBPM] - Re: About Spring-integeration of JBPM4 with Spring 2.5

2009-07-25 Thread shekharv
| | | | | | | | | | | | | | | | | | | Try the above configuration. For more information refer to the userguide @ http://docs.jboss.com/jbpm/v4.0/devguide/html_single/#springIntegration View

[jboss-user] [JBoss jBPM] - Re: where can I find this class

2009-07-24 Thread shekharv
There you go, http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243744#4243744 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245901#4245901 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245901 ___

[jboss-user] [JBoss jBPM] - Re: jbpm4-hibernate2-spring1.2 integration

2009-07-24 Thread shekharv
You would have to upgrade to Hibernate3. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245902#4245902 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245902 ___ jboss-user mai

[jboss-user] [JBoss jBPM] - Re: [JBPM4] How to maintain class files for different Proces

2009-07-23 Thread shekharv
OK, I do not think we are on the same page, Why do you want to change the class name or package name in the first place? The reason I recommended as an option was if you had to change the behavior of a certain class that gets invoked as part of the jbpm process execution. Say you have an assignm

[jboss-user] [JBoss jBPM] - Re: jBPM 4.0 instance creation results in single task

2009-07-23 Thread shekharv
The task is created when the execution reaches that stage in the processDefinition. eg: | | | | | | | 'review2' will not be created until 'review1' is completed. Consider this: | | | | | | | |

[jboss-user] [JBoss jBPM] - Re: [JBPM4] How to maintain class files for different Proces

2009-07-23 Thread shekharv
Which would mean, bundled within your own application? What do you mean by jbpm3 not caring for class packaging? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245718#4245718 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [JBoss jBPM] - Re: [JBPM4] How to maintain class files for different Proces

2009-07-23 Thread shekharv
How are you deploying these processes? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245716#4245716 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245716 ___ jboss-user mail

[jboss-user] [JBoss jBPM] - Re: [JBPM4] How to maintain class files for different Proces

2009-07-23 Thread shekharv
I am not sure i understand, Are you saying ur process definitions refer to different versions of the same class? As in an updated process def has the updated version and older one uses the original. Give it a name spaced package name? version1.Handler, version2.Handler? Any one consistent stra

[jboss-user] [JBoss jBPM] - Re: Whether the JBPM4.0 support informix

2009-07-23 Thread shekharv
what dialect do you have for hibernate? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245060#4245060 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245060 ___ jboss-user mail

[jboss-user] [JBoss jBPM] - Re: About integrating JBPM in an existing EAR

2009-07-23 Thread shekharv
Could you post your entire jbpm config again? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245072#4245072 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245072 ___ jboss-use

[jboss-user] [JBoss jBPM] - Re: Spring integration: No platformTransaction manager defin

2009-07-23 Thread shekharv
Refer to this and let us know if it works, https://jira.jboss.org/jira/browse/JBPM-2315 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245126#4245126 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245126 __

[jboss-user] [JBoss jBPM] - Re: About integrating JBPM in an existing EAR

2009-07-23 Thread shekharv
OK, I took a few minutes out and whipped up a post about this, I will fleshing out the details today and tomorrow, but you guys can download the code and test it out. The blog post is @: http://shekharv.blogspot.com/2009/07/sample-hibernate-and-jbpm-application.html Right now there is just a Te

[jboss-user] [JBoss jBPM] - Re: Jbpm-Spring app deployment to jboss

2009-07-23 Thread shekharv
How were you deploying a spring application to jboss before? One of the more simplistic ways is to Bundle the application up as an EAR or WAR and deploy to jboss, setup a datasource for your database connectivity, and jbpm gets injected with the sessionfactory that spring creates with that data

[jboss-user] [JBoss jBPM] - Re: Due Date and End Date of a Task.

2009-07-23 Thread shekharv
Due date signifies when a task is to be completed by. So if you have Task1 out there with Due Date for tomorrow, then it just means that it is to be done tomorrow. Just like homework, due tomorrow, but might be submitted late, day after tomorrow. So just because a task is due in a day does not

[jboss-user] [JBoss jBPM] - Re: forum search problem

2009-07-23 Thread shekharv
I believe there have been some problems with the search functionality, especially over the last few weeks, Sometimes it just did not return any results. But keep trying, is there any way you can notify anyone when u get the error? View the original post : http://www.jboss.org/index.html?modul

[jboss-user] [JBoss jBPM] - Re: About integrating JBPM in an existing EAR

2009-07-21 Thread shekharv
Is your hibernate session setup as following? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245036#4245036 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245036 ___ jboss-u

[jboss-user] [JBoss jBPM] - Re: Help with massive architectural problem: old jbpm proces

2009-07-20 Thread shekharv
Check if this will help for now: http://www.google.com/search?client=safari&rls=en-us&q=jbpm+process+migration&ie=UTF-8&oe=UTF-8 You can start from here and then see how it goes, but again this is not for the faint hearted. Having said that, it is not impossible, and totally depends on what kin

[jboss-user] [JBoss jBPM] - Re: How to extends jBPM4 with its new configuration files

2009-07-20 Thread shekharv
Is there anything in particular you are looking for? There is a way to override the Configuration object setup, but I am not sure whether that is what you are looking for. So a little context info would help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244

[jboss-user] [JBoss jBPM] - Re: Adding persistance objects to jbpm4 database

2009-07-20 Thread shekharv
Is this what you are looking for? This has details about what you need to do get things going, http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158508 Let us know if you need more, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244762#4244762 Reply

[jboss-user] [JBoss jBPM] - Re: About integrating JBPM in an existing EAR

2009-07-20 Thread shekharv
Sorry, that should read: Once you do the above, you should have the code going such that jBPM uses your sessionFactory to interact with the database. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244761#4244761 Reply to the post : http://www.jboss.org/ind

[jboss-user] [JBoss jBPM] - Re: About integrating JBPM in an existing EAR

2009-07-20 Thread shekharv
Actually, I will get the code sample going today or so, but just so that you are not held up, here's how you would do it. You initialize the Jbpmconfiguration object, | //Setup the SessionFactory, this would be in your control. | //I am using the HibernateUtil approach, that is pr

[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?

2009-07-20 Thread shekharv
There was some discussion that the addition of this feature where you could pull the tasks related to a processInstance from within the TaskService API itself, I do not think this is in the release as yet, So in the meanwhile you could always do this, fairly simple and quick to implement: You c

[jboss-user] [JBoss jBPM] - Re: jBPM 4 : Can we get Task by using ProcessInstance?

2009-07-20 Thread shekharv
Yes! This was not in CR!, but did make it to GA, I knew there was a discussion to add it, but then I guess I looked in the wrong place when I checked :P. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244321#4244321 Reply to the post : http://www.jboss.org/

[jboss-user] [JBoss jBPM] - Re: Variables persistence

2009-07-20 Thread shekharv
Are you looking to how to persist the updated values of 'process variables'? so step2 in a workflow updates the 'discount' variable, you now need the updated variable down the line? Also what version of jbpm are u working against? View the original post : http://www.jboss.org/index.html?modul

[jboss-user] [JBoss jBPM] - Re: About integrating JBPM in an existing EAR

2009-07-20 Thread shekharv
This actually might be a problem, I had to jump through a bunch of hoops to get this working. Let me get together a test case and I will post it on the forum for the Design team to look at. I have a small application that integrates with hibernate and also with your custom hbm files, exactly th

[jboss-user] [JBoss jBPM] - Re: node_enter event trouble

2009-07-15 Thread shekharv
funny you say that Ronald, coz it actually does prompt a correction for me, :P View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243842#4243842 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243842

[jboss-user] [JBoss jBPM] - Re: java.lang.NullPointerException in CreateDeploymentQueryC

2009-07-15 Thread shekharv
Could you post your jbpm configuration? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243837#4243837 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243837 ___ jboss-user mail

[jboss-user] [JBoss jBPM] - Re: JBPM 4.0 - Missing Class JpdlExecution

2009-07-13 Thread shekharv
jbpm.hibernate.cfg.xml in the examples folder does not have a reference to the hbm file that you mentioned, so looks like it might be something that is there, but not being used? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243378#4243378 Reply to the post

[jboss-user] [JBoss jBPM] - Re: JBPM4: FOREIGN KEY problem

2009-07-10 Thread shekharv
I assume, you fixed it, by doing what was recommended? Just so that it might help others too, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242921#4242921 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242921 ___

[jboss-user] [JBoss jBPM] - Re: JBPM - How to configure Application Database connections

2009-07-09 Thread shekharv
OK, I looked at your post first and got the impression that you wanted to set up a connection pool, but then you mention that you want the application is in oracle, but the jbpm database is in mysql? How is your application interacting with jbpm? In embedded mode? If so, is there a particular

[jboss-user] [JBoss jBPM] - Re: JBPM4: FOREIGN KEY problem

2009-07-09 Thread shekharv
Once you have completed the last task in the process, the process goes to the end sate after which it is deleted from the jbpm4_execution table and is then put into the JBPM4_HIST_PROCINST table, Now here are the two lines that are causing the problem: this is in the del method: ProcessInstan

[jboss-user] [JBoss jBPM] - Re: JBPM4: FOREIGN KEY problem

2009-07-09 Thread shekharv
I am using jbpm 4 cr1. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242552#4242552 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242552 ___ jboss-user mailing list jboss-us

[jboss-user] [JBoss jBPM] - Re: JBPM4: FOREIGN KEY problem

2009-07-09 Thread shekharv
as I said, I did check it with mysql, it says so in the hibernate config. Can you try in a different database? Hsql? the stuff that jbpm comes with default? | | | http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd";> | | | | | org.hibernate.dialect.HSQ

[jboss-user] [JBoss jBPM] - Re: JBPM4: FOREIGN KEY problem

2009-07-09 Thread shekharv
OK, well I could not sleep, so I did try your code out, and it worked. Within Mysql. Your code was unchanged except for the fact that there was a method that you did not put in the earlier post. test.PID(). You did not put that method in the post you had. Here's the jbpm.hibernate.cfg.xml i ha

[jboss-user] [JBoss jBPM] - Re: JBPM4: FOREIGN KEY problem

2009-07-09 Thread shekharv
I do not have any problems on MySql. I would attempt to recreate the tables once, or delete all the data in there once, and try again, Is the latest code that you were trying? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242530#4242530 Reply to the pos

[jboss-user] [JBoss jBPM] - Re: Forced installation of JBoss?

2009-07-07 Thread shekharv
Please use the 3.2.6SP1 version of jbpm as it is the latest stable version. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242299#4242299 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242299 ___

[jboss-user] [JBoss jBPM] - Re: jBPM4: Manually created task can't block the execution

2009-07-07 Thread shekharv
There is no execution associated with the Task you created, if there is no execution, then we cannot expect it to block. Again, v4 is fairly new, so as I said before, will dig deeper and see if there is another way to do this, View the original post : http://www.jboss.org/index.html?module=bb

[jboss-user] [JBoss jBPM] - Re: jBPM4: Manually created task can't block the execution

2009-07-07 Thread shekharv
At first look, I would think that this is expected. >From what I can remember there is a lot more happening around taskCreation >that just the simple: | Task task = taskService.newTask(); | task.setAssignee("stu"); | task.setName("submit your homework"); | taskService.saveTask(task); |

[jboss-user] [JBoss jBPM] - Re: jbpm4: could it simpler implementing an identical user i

2009-07-05 Thread shekharv
Look at the eventListener folder's process.jpdl.xml in the examples that come with jbpm4. You could use something like: This listener could then be the base to trigger the code that you could use to dynamically build the process. View the original post : http://www.jboss.org/index.htm

[jboss-user] [JBoss jBPM] - Re: SQL error executing test process

2009-07-05 Thread shekharv
Does not seem to be a jbpm error per se. If anything the create-drop hibernate config option that you likely have in your jbpm.hibernate.cfg.xml seems to the root cause. Try not recreating the schema everytime you run the test case and it 'should' go away. This could mean though that the jbpm m

[jboss-user] [JBoss jBPM] - Re: Is there any kind of variable in JBPM4 like 'transient v

2009-07-05 Thread shekharv
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=157927 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241664#4241664 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241664 __

[jboss-user] [JBoss jBPM] - Re: what is the executionContext equivalent in jbpm4.0 to se

2009-07-05 Thread shekharv
If you are talking about ExecutionContext and the methods getVariable and setVariable then what you should probably be using in v4 is the ExecutionService's getVariable/getVariables and setVariable/setVariables. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4

[jboss-user] [JBoss jBPM] - Re: Indentityservice- Jbpm4

2009-06-28 Thread shekharv
I was working against CR1 code. I do not have a build of current trunk to comment on whether or not it works, Did you try against CR1? Is there a particular reason to go against trunk code directly? Something you cannot wait to use till it is officially out :) ?. I will let you know if I see

[jboss-user] [JBoss jBPM] - Re: Indentityservice- Jbpm4

2009-06-26 Thread shekharv
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=157513 Please refer to the above post. I posted some instructions on there too. I have it setup the way it is recommended in the user guide and it does work. You might just want to start small and modify the config within the jbpm example

[jboss-user] [JBoss jBPM] - Re: Custom IdentitySession configuration

2009-06-23 Thread shekharv
Just use something on the lines of what is specified below: Of course you WILL have to tweak it to suite all your needs, | | | | | | | | | | | | | | | | |

[jboss-user] [JBoss jBPM] - Re: Ora-Apps integration

2009-06-23 Thread shekharv
If you have code that talks to 'ora-apps' through java, you can certainly call into that code from within the jbpm process lifecycle at various points. there are a number of ways to setup action handlers, and other ways to integrate with the jbpm api that will let you execute snippets of java co

[jboss-user] [JBoss jBPM] - Re: JBPM assign

2009-06-22 Thread shekharv
http://docs.jboss.org/jbpm/v3/userguide/taskmanagement.html#thegrouptasklist View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239154#4239154 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239154 __

[jboss-user] [JBoss jBPM] - Re: self-cycle node

2009-06-22 Thread shekharv
So as part of completing a task, you would like the same person to review whether the task was done properly? Could that just be workflow step? Or a decision node? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238949#4238949 Reply to the post : http://www.

[jboss-user] [JBoss jBPM] - Re: how to get a processEngine already created?

2009-06-18 Thread shekharv
As for the other part of your question regarding retrieving created processInstances, you can configure the same way the test cases are doing this, that will give you the environment and processengine, but also then simply use the ExecutionService methods ProcessInstance findProcessInstanceByI

[jboss-user] [JBoss jBPM] - Re: how to get a processEngine already created?

2009-06-18 Thread shekharv
If you do not want the tables to be redeployed everytime, change the property below in jbpm.hibernate.cfg.xml update If you do not want to delete the users, just comment out those statements in the respective testcases. The testcases do not assume anything as to what can or cannot be present and

[jboss-user] [JBoss jBPM] - Re: Reg:Cannot read the xml file

2009-06-15 Thread shekharv
Had this problem with Spring WS once. Was something related to the incorrect version of the xml parser(xalan). maybe the incorrect version is getting picked? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237788#4237788 Reply to the post : http://www.jboss

[jboss-user] [JBoss jBPM] - Re: How to add comments

2009-06-14 Thread shekharv
I believe you could simply do Taskinstance.addComment(string comment) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237476#4237476 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237476 _

[jboss-user] [JBoss jBPM] - Re: How can I start workflow instance on schedule?

2009-06-14 Thread shekharv
If you can start one manually, yes you can start one on a schedule. Although you would not need anything inbuilt in jBPM to do this. You could just schedule a job yourself that does this, calls the code to create/start a process instane yourself. View the original post : http://www.jboss.org/in

[jboss-user] [JBoss jBPM] - Indentityservice- Jbpm4

2009-06-11 Thread shekharv
How would we 'register' a custom implementation of the identity service within jbpm4? So if I needed to use it to implement a different kind of auth provider, instead of a db backed one? Thanks, View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237157#4237157

[jboss-user] [JBoss jBPM] - Re: Custom Task implementation in jbpm4

2009-05-27 Thread shekharv
We currently use the custom Task instance implementation to store additional data related to a task. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233696#4233696 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233696

[jboss-user] [JBoss jBPM] - Custom Task implementation in jbpm4

2009-05-27 Thread shekharv
Hi, Is there any equivalent to the jbpm3 custom task implementation, using the TaskInstanceFactory in jbpm4? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233695#4233695 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=