[jboss-user] [JBoss jBPM] - Object as a process Variable

2009-07-23 Thread csplrj
How can I use object as a process Variable?
What I require is the same object to be set in the process as a Process 
Variable and then the same object will be used in the decision node and the 
transition condition expression

#{contextInstance.variables.customObject.amount = 
contextInstance.variables.customObject.amount }
  | 
Thanks in advance

CSJakharia

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4245196#4245196

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245196
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JBPM 3.2.2 Timer Example

2009-07-20 Thread csplrj
The XML is not being displayed properly and so the correct XML is 

task-node name=legalDept
  | task name=task3
  | assignment 
class=com.process.jbpm.ActorAssignmentHandler/assignment
  | /task
  | event type=task-assign
  | action class=com.process.jbpm.JbpmActionListener
  | actionListener
  | 
com.zycus.contract.authoring.process.ContractStageUpdateEvent1
  | /actionListener
  | /action
  | /event
  | timer name=timer1 transition=LegalApprove duedate=3 
business minutes
  | script
  | System.out.println(Timer Fired);
  | /script
  | /timer
  | transition to=join2 name=LegalApprove
  | action 
class=com.process.jbpm.JbpmPollingActionListener/action
  | /transition
  | transition to=join2 name=raiseSomeConcern
  | action 
class=com.process.jbpm.JbpmPollingActionListener/action
  | /transition
  | /task-node

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4244639#4244639

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244639
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - JBPM 3.2.2 Timer Example

2009-07-20 Thread csplrj
JBPM 3.2.2 Timer 

I am trying a timer on JBPM 3.2.2 but it seems its not working somehow.
A Entry in JBPM_JOB table is passed but the time specified seems to be wrong or 
taken from somewhere which I don't understand from where it has been taken

The below is the part of processDefinition which does not works?

The Time in the JBPM_JOB table is 7/20/2009 9:06:10 AM though on my local 
machine time is around 7/20/2009  2:30PM

Thanks in advance

CSJakharia

I have entry as 
task-node name=legalDept







com.zycus.contract.authoring.process.ContractStageUpdateEvent1





System.out.println(quot;Timer Firedquot;);








/task-node


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4244598#4244598

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244598
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Does anyone has example for ExpressionAssignmentHandler

2009-07-13 Thread csplrj
I wanted to see the example of identity management regarding how to configure 
our orgainzation's mapping and using ExpressionAssignmentHandler regarding this

CSJakharia

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4243268#4243268

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243268
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Does JBPM Supports fully actor based taskList

2008-06-09 Thread csplrj
Yes your statement was proper but somehow i missed the meaning. That's my fault

Thanks for the help kukeltje

CSJakharia

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4156621#4156621

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156621
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Error while trying to connect to Oracle database from jB

2008-06-09 Thread csplrj
Try to recreate the schema of Oracle  as per 
\jbpm-jpdl-3.2.2\db\jbpm.jpdl.oracle.sql 

See if this helps

CSJakharia

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4156626#4156626

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156626
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Does JBPM Supports fully actor based taskList

2008-06-06 Thread csplrj
I tried 
((TaskInstance)taskMgmtSession.findTaskInstances(b).get(0)).getToken().end();
instead of 
((TaskInstance)taskMgmtSession.findTaskInstances(b).get(0)).getToken().signal();

but then the result comes as
a1 0
b1 1

What I require is that the task should be proceeded and as the second task is 
assigned to Actor a then the result should come something like this

a1 1
b1 0


Thanks in advance

CSJakharia

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4156241#4156241

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156241
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Does JBPM Supports fully actor based taskList

2008-06-06 Thread csplrj
I solved the issue. Actually I was putting an end to Token instead of 
TaskInstance due to which whole ProcessInstance was closed

Finally I am able to solve the issue

Thanks for that

CSJakharia

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4156255#4156255

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156255
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: replication of task at runtime

2008-06-05 Thread csplrj
Does it involves different actors or same actors? I am just asking as I have a 
same problem. but i require that the task to be associated with different actors

Thanks in advance

CSJakharia

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4155853#4155853

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4155853
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Does JBPM Supports fully actor based taskList

2008-06-05 Thread csplrj
I think I can't understand whether JBPM supports actor based TaskList?

I have 2 tasks. The First one is assigned to actor b and then the next task 
is assigned to actor a 

the process of assigning is through AssignmentHandler
assignable.setActorId

After that process is passed from the First Task then I print the count of 
TasksList of both actor by using

System.out.println(a1 + taskMgmtSession.findTaskInstances(a).size());
System.out.println(b1 + taskMgmtSession.findTaskInstances(b).size());

The output is
a1 1
b1 1

but the expected output is 
a1 1
b1 0

as Now the Second Task is being awaited and only a has been assigned to the 
Second Task then how can that task be available in actor b 's Task List


Does JBPM supports fully actor based Tasks?

Thanks in advance

CSJakharia

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4155932#4155932

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4155932
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Does JBPM Supports fully actor based taskList

2008-06-05 Thread csplrj
The files as per below

Thanks in advance

CSJakharia

processdefinition.xml 
?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition  xmlns=urn:jbpm.org:jpdl-3.2  name=authoring
  | start-state name=start-state1
  | task
  | /task
  | transition to=task1/transition
  | /start-state
  | 
  | 
  | task-node name=task1
  | description
  | task1
  | /description
  | task
  | assignment 
class=com.workflow.AssignTask/assignment
  | /task
  | transition to=task2/transition
  | /task-node
  | 
  | task-node name=task2
  | description
  | task2
  | /description
  | task
  | assignment 
class=com.workflow.AssignTask1/assignment
  | /task
  | transition to=end/transition
  | /task-node
  | 
  | node name=end
  | action class=com.workflow.HandleAction /action
  | transition to=end-state1/transition
  | /node
  | 
  | 
  | end-state name=end-state1
  | 
  | /end-state
  | 
  | 
  | /process-definition   


AssignTask.java 
public class AssignTask implements AssignmentHandler {
  | 
  | public void assign(Assignable assignable, ExecutionContext 
executionContext)
  | throws Exception {
  | // TODO Auto-generated method stub
  | assignable.setActorId(b);
  | }
  | 
  | }   

AssignTask1.java 
public class AssignTask1 implements AssignmentHandler {
  | 
  | public void assign(Assignable assignable, ExecutionContext 
executionContext)
  | throws Exception {
  | // TODO Auto-generated method stub
  | assignable.setActorId(a);
  | }
  | 
  | }   



Test.java

  | import java.io.FileInputStream;
  | import java.io.FileNotFoundException;
  | import java.util.Set;
  | 
  | import org.jbpm.JbpmConfiguration;
  | import org.jbpm.JbpmContext;
  | import org.jbpm.db.GraphSession;
  | import org.jbpm.db.TaskMgmtSession;
  | import org.jbpm.graph.def.ProcessDefinition;
  | import org.jbpm.graph.exe.ProcessInstance;
  | import org.jbpm.graph.exe.Token;
  | import org.jbpm.taskmgmt.exe.PooledActor;
  | import org.jbpm.taskmgmt.exe.TaskInstance;
  | 
  | public class Test {
  |  static JbpmConfiguration jbpmConfiguration = null; 
  | 
  |  public static void deployProcessDefinition()
  |  {
  | try {
  | ProcessDefinition processDefinition = 
ProcessDefinition.parseXmlInputStream(new 
FileInputStream(D:\\Cobra\\workspace\\WorkFlowAuthoringPOC\\src\\main\\jpdl\\authoring\\processdefinition.xml));
  | JbpmContext jbpmContext = 
jbpmConfiguration.createJbpmContext();
  | jbpmContext.deployProcessDefinition(processDefinition);
  | jbpmContext.close();
  | } catch (FileNotFoundException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | }
  |  }
  |  
  | /**
  |  * @param args
  |  */
  | public static void main(String[] args) {
  | // TODO Auto-generated method stub
  | try {
  | jbpmConfiguration = 
JbpmConfiguration.parseInputStream(new 
FileInputStream(D:\\Cobra\\workspace\\WorkFlowAuthoringPOC\\src\\main\\config\\jbpm.cfg.xml));
  | jbpmConfiguration.createSchema();
  | deployProcessDefinition();
  | JbpmContext jbpmContext = 
jbpmConfiguration.createJbpmContext();
  | System.out.println(jbpmContext.getActorId() 
+jbpmContext.getActorId());
  | GraphSession graphSession = 
jbpmContext.getGraphSession();
  |   ProcessDefinition processDefinition = 
  |   graphSession.findLatestProcessDefinition(authoring);
  | ProcessInstance processInstance = new 
ProcessInstance(processDefinition);
  | Token token=processInstance.getRootToken();
  |   // Let's start the process execution, leaving the 
start-state 
  |   // over its default transition.
  |   token.signal();
  |   TaskInstance taskInstance = (TaskInstance)  
  |   processInstance
  | .getTaskMgmtInstance()
  | .getTaskInstances()
  | .iterator().next();
  |   
  |   System.out.println(size 
+processInstance.getTaskMgmtInstance().getTaskInstances().size());
  |   System.out.println(taskInstance.getActorId()  
+taskInstance.getActorId());
  |   System.out.println(taskInstance.getPooledActors()  

[jboss-user] [JBoss jBPM] - Even though the task is not for that actor i get that task u

2008-06-04 Thread csplrj
Below is the code for the experiment
I have assigned the process to pool of actors
After that task there is another task which is assigned to a single actor 
on reaching that task Node I try to get the remaining tasks for c but when i 
try the following code
System.out.println(c1 + taskMgmtSession.findPooledTaskInstances(c).size());

it gives output as 1 and it reaches stage task2 even though through the 
assignment of task 2 its only applicable to actor a.

System.out.println(c2 + 
((TaskInstance)taskMgmtSession.findPooledTaskInstances(c).get(0)).getToken().getNode().getName());

gives output as task2

Thanks in advance

CSJakharia


processdefinition.xml

?xml version=1.0 encoding=UTF-8?
  | 
  | process-definition  xmlns=urn:jbpm.org:jpdl-3.2  name=authoring
  | start-state name=start-state1
  | task
  | /task
  | transition to=task1/transition
  | /start-state
  | 
  | 
  | task-node name=task1
  | description
  | task1
  | /description
  | task
  | assignment 
class=com.workflow.AssignTask/assignment
  | /task
  | transition to=task2/transition
  | /task-node
  | 
  | task-node name=task2
  | description
  | task2
  | /description
  | task
  | assignment 
class=com.workflow.AssignTask1/assignment
  | /task
  | transition to=end/transition
  | /task-node
  | 
  | node name=end
  | action class=com.workflow.HandleAction /action
  | transition to=end-state1/transition
  | /node
  | 
  | 
  | end-state name=end-state1
  | 
  | /end-state
  | 
  | 
  | /process-definition



AssignTask.java
public class AssignTask implements AssignmentHandler {
  | 
  | public void assign(Assignable assignable, ExecutionContext 
executionContext)
  | throws Exception {
  | // TODO Auto-generated method stub
  | String actors[]=new String[]{a,b,c};
  | assignable.setPooledActors(actors);
  | }
  | 
  | }

AssignTask1.java
public class AssignTask1 implements AssignmentHandler {
  | 
  | public void assign(Assignable assignable, ExecutionContext 
executionContext)
  | throws Exception {
  | // TODO Auto-generated method stub
  | assignable.setActorId(a);
  | }
  | 
  | }

Test.java

  | public class Test {
  |  static JbpmConfiguration jbpmConfiguration = null; 
  | 
  |  public static void deployProcessDefinition()
  |  {
  | try {
  | ProcessDefinition processDefinition = 
ProcessDefinition.parseXmlInputStream(new 
FileInputStream(D:\\WorkFlowAuthoringPOC\\src\\main\\jpdl\\a\\processdefinition.xml));
  | JbpmContext jbpmContext = 
jbpmConfiguration.createJbpmContext();
  | jbpmContext.deployProcessDefinition(processDefinition);
  | jbpmContext.close();
  | } catch (FileNotFoundException e) {
  | // TODO Auto-generated catch block
  | e.printStackTrace();
  | }
  |  }
  | public static void main(String[] args) {
  | try {
  | jbpmConfiguration = 
JbpmConfiguration.parseInputStream(new 
FileInputStream(D:\\Cobra\\workspace\\WorkFlowAuthoringPOC\\src\\main\\config\\jbpm.cfg.xml));
  | jbpmConfiguration.createSchema();
  | deployProcessDefinition();
  | JbpmContext jbpmContext = 
jbpmConfiguration.createJbpmContext();
  | System.out.println(jbpmContext.getActorId() 
+jbpmContext.getActorId());
  | GraphSession graphSession = 
jbpmContext.getGraphSession();
  |   ProcessDefinition processDefinition = 
  |   graphSession.findLatestProcessDefinition(authoring);
  | ProcessInstance processInstance = new 
ProcessInstance(processDefinition);
  | Token token=processInstance.getRootToken();
  |   // Let's start the process execution, leaving the 
start-state 
  |   // over its default transition.
  |   token.signal();
  |   TaskInstance taskInstance = (TaskInstance)  
  |   processInstance
  | .getTaskMgmtInstance()
  | .getTaskInstances()
  | .iterator().next();
  |   
  |   System.out.println(size 
+processInstance.getTaskMgmtInstance().getTaskInstances().size());
  |   System.out.println(taskInstance.getActorId()  
+taskInstance.getActorId());
  |   System.out.println(taskInstance.getPooledActors()  

[jboss-user] [JBoss jBPM] - Re: Want to suspend\close the taskInstance for some actors o

2008-06-03 Thread csplrj
Thanks for your reply

Can this be added as an enhancement or this is a custom requirement?

To me it feels it is a generalised requirement

Thanks again

CSJakharia

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4155401#4155401

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4155401
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Want to suspend\close the taskInstance for some actors out o

2008-06-03 Thread csplrj
I am assigning a task to a pool of actors and later on I want to suspend\close  
the taskInstance for some actors out of those pool of actors?

eg.
I assign a task named Submit your notebooks and have assigned them to persons 
a,b,c,d and then I require that if except for a,b I want to close the 
TaskInstance for other users as soon as they fill up process variables. but 
want that the TaskInstance should be open for a and b.
a user is a master user as soon as he fills up process variables the 
TaskInstance is closed for all users including himself.

closed implies proceeds to next node

How to perform that?

Thanks in advance

CSJakharia

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4155380#4155380

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4155380
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - @SerializedConcurrentAccess not preventing concurrent access

2007-02-28 Thread csplrj
Software
JDK 1.5
JBoss 4.0.5GA

Problem
I have used code as 
@SerializedConcurrentAccess
  | public class Class1 implements SessionBean {

This does not prevents Concurrent Access to the Statefull Session bean.
I could not get the reason. I am coding as a simple Bean. is it  that I have to 
type the code of the Bean in EJB3 format.

Thanks in advance

CSJakharia

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4023800#4023800

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4023800
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Catch javax.ejb.EJBException: Could not activate; failed to

2007-02-27 Thread csplrj
Software
JDK 1.5
JBoss 4.0.5GA

Problem

I know the beow mentioned error is as my bean is getting passivated and then 
when I try to use the Remote Interface that bean this error is thrown

I require a method by which I can catch this error and create a new bean 
whenever required. Does anyone knows of any way by which I will catch this 
specific error and create a new Stateful bean.

I mean to say some way by using the Remote Interface to find out whether the 
bean is active or has been vanished from the memory

Thanks in advance

CSJakharia


Error
2007-02-27 19:41:23,322 DEBUG [org.jboss.ejb.plugins.AbstractInstanceCache] 
Activation failure
  | javax.ejb.EJBException: Could not activate; failed to restore state
  | at 
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.activateSession(StatefulSessionFilePersistenceManager.java:343)
  | at 
org.jboss.ejb.plugins.StatefulSessionInstanceCache.activate(StatefulSessionInstanceCache.java:113)
  | at 
org.jboss.ejb.plugins.AbstractInstanceCache.doActivate(AbstractInstanceCache.java:457)
  | at 
org.jboss.ejb.plugins.StatefulSessionInstanceCache.doActivate(StatefulSessionInstanceCache.java:129)
  | at 
org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:123)
  | at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:236)
  | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
  | at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
  | at org.jboss.ejb.Container.invoke(Container.java:954)
  | at sun.reflect.GeneratedMethodAccessor82.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
  | at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
  | at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
  | at sun.rmi.transport.Transport$1.run(Transport.java:153)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
  | at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
  | at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
  | at java.lang.Thread.run(Thread.java:595)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4023107#4023107

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4023107
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user