Re: [rules-users] Human Task Work Item - Activation Time
Created a jira issue https://jira.jboss.org/jira/browse/JBRULES-2372 Regards Vijay From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mauricio Salatino Sent: Monday, December 14, 2009 11:16 AM To: Rules Users List Subject: Re: [rules-users] Human Task Work Item - Activation Time Yes or you can create a jira issue explaining the expected behavior and we can implement it. 2009/12/14 Vijay K Pandey mailto:vpan...@mdes.ms.gov>> I checked the TaskData class and it sets the activation time during initialization - as shown below //@FIXME for now we activate on creation, unless date is supplied if (getActivationTime() == null) { setActivationTime(createdOn); } I looked up the WSHT specs, it only mentions this "The time in UTC when the task has been activated." I also looked up at the BPEL4People and there its defines "Defer Activation" which is mainly related to the "scheduled actions", I guess opposite to the expiration time. So looks like I have to manage this feature on my own. Regards Vijay -Original Message- From: rules-users-boun...@lists.jboss.org<mailto:rules-users-boun...@lists.jboss.org> [mailto:rules-users-boun...@lists.jboss.org<mailto:rules-users-boun...@lists.jboss.org>] On Behalf Of Kris Verlaenen Sent: Monday, December 14, 2009 9:03 AM To: Rules Users List; Vijay K Pandey Cc: Rules Users List Subject: Re: [rules-users] Human Task Work Item - Activation Time We just try to follow what is defined in the WS-HumanTask specification. Could you check whether this is a limitation of the spec itself or whether we did not implement that feature correctly? Kris Quoting Vijay K Pandey mailto:vpan...@mdes.ms.gov>>: > Hi, > > > > If a human task once in "Reserved" state is released it goes in the > "Ready" state and then if claimed by a potential owner - should the > activation time of the task change or not? If not is there any way to > identify that at what time the task was claimed by another potential > owner. > > > > Thanks > > Vijay > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ rules-users mailing list rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org> https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org> https://lists.jboss.org/mailman/listinfo/rules-users -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Human Task Work Item - Activation Time
Yes or you can create a jira issue explaining the expected behavior and we can implement it. 2009/12/14 Vijay K Pandey > I checked the TaskData class and it sets the activation time during > initialization – as shown below > > > > //@FIXME for now we activate on creation, unless date is supplied > > *if* (getActivationTime() == *null*) { > > setActivationTime(createdOn); > > } > > > > I looked up the WSHT specs, it only mentions this > > “The time in UTC when the task has been activated.” > > > > I also looked up at the BPEL4People and there its defines “Defer > Activation” which is mainly related to the “scheduled actions”, I guess > opposite to the expiration time. > > > > So looks like I have to manage this feature on my own. > > > > Regards > > Vijay > > > > -Original Message- > From: rules-users-boun...@lists.jboss.org [mailto: > rules-users-boun...@lists.jboss.org] On Behalf Of Kris Verlaenen > Sent: Monday, December 14, 2009 9:03 AM > To: Rules Users List; Vijay K Pandey > Cc: Rules Users List > Subject: Re: [rules-users] Human Task Work Item - Activation Time > > > > We just try to follow what is defined in the WS-HumanTask specification. > > Could you check whether this is a limitation of the spec itself or > > whether we did not implement that feature correctly? > > > > Kris > > > > Quoting Vijay K Pandey : > > > > > Hi, > > > > > > > > > > > > If a human task once in "Reserved" state is released it goes in the > > > "Ready" state and then if claimed by a potential owner - should the > > > activation time of the task change or not? If not is there any way to > > > identify that at what time the task was claimed by another potential > > > owner. > > > > > > > > > > > > Thanks > > > > > > Vijay > > > > > > > > > > > > > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm > > ___ > > rules-users mailing list > > rules-users@lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/rules-users > > ___ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > > -- - http://salaboy.wordpress.com - http://www.jbug.com.ar - Salatino "Salaboy" Mauricio - ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Human Task Work Item - Activation Time
I checked the TaskData class and it sets the activation time during initialization - as shown below //@FIXME for now we activate on creation, unless date is supplied if (getActivationTime() == null) { setActivationTime(createdOn); } I looked up the WSHT specs, it only mentions this "The time in UTC when the task has been activated." I also looked up at the BPEL4People and there its defines "Defer Activation" which is mainly related to the "scheduled actions", I guess opposite to the expiration time. So looks like I have to manage this feature on my own. Regards Vijay -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Kris Verlaenen Sent: Monday, December 14, 2009 9:03 AM To: Rules Users List; Vijay K Pandey Cc: Rules Users List Subject: Re: [rules-users] Human Task Work Item - Activation Time We just try to follow what is defined in the WS-HumanTask specification. Could you check whether this is a limitation of the spec itself or whether we did not implement that feature correctly? Kris Quoting Vijay K Pandey : > Hi, > > > > If a human task once in "Reserved" state is released it goes in the > "Ready" state and then if claimed by a potential owner - should the > activation time of the task change or not? If not is there any way to > identify that at what time the task was claimed by another potential > owner. > > > > Thanks > > Vijay > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Human Task Work Item - Activation Time
We just try to follow what is defined in the WS-HumanTask specification. Could you check whether this is a limitation of the spec itself or whether we did not implement that feature correctly? Kris Quoting Vijay K Pandey : > Hi, > > > > If a human task once in "Reserved" state is released it goes in the > "Ready" state and then if claimed by a potential owner - should the > activation time of the task change or not? If not is there any way to > identify that at what time the task was claimed by another potential > owner. > > > > Thanks > > Vijay > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Human Task Work Item - Activation Time
Hi, If a human task once in "Reserved" state is released it goes in the "Ready" state and then if claimed by a potential owner - should the activation time of the task change or not? If not is there any way to identify that at what time the task was claimed by another potential owner. Thanks Vijay ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Human Task Work Item - Activation Time
Hi, If a human task once in "Reserved" state is released it goes in the "Ready" state and then if claimed by a potential owner - should the activation time of the task change or not? If not is there any way to identify that at what time the task was claimed by another potential owner. Thanks Vijay ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Human Task Work Item
What info does the work item contain that the task itself does not? Basically, the idea would be to put all data that the task needs (directly) as the content of the task ("Content" parameter), so the client can access it. Kris Citeren Todd Pagni : > Thanks for the info. I was hoping there was a way to get the work > item > via mina. We have a client application that is communicating with > the > TaskServer via mina and it would be nice if you could easily get a > work > item that is associated with a task instead of creating a separate > knowledgesession. > > > > From: rules-users-boun...@lists.jboss.org > [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Vijay K > Pandey > Sent: Tuesday, December 08, 2009 11:47 AM > To: Rules Users List > Subject: Re: [rules-users] Human Task Work Item > > > > I guess first you have to get hold of the "workitemid" from the task > data i.e. task.getTaskData().getWorkItemId(). > > > > a) Create a "Command" class which implements > GenericCommand > > b)Implement the method "public WorkItem execute(Context > context)" > > c) Based on the workitem id ( set this value in your command > object > - constructor/setter) - get hold of the WorkItemInfo object through > the > entity manager and then its workItem - something like this > > > > StatefulKnowledgeSession ksession = > ((KnowledgeCommandContext) > context).getStatefulKnowledgesession(); > > if (workItemId==null) { > > return null; > > } > > EntityManager em = (EntityManager) > ksession.getEnvironment().get(EnvironmentName.ENTITY_MANAGER); > > WorkItemInfo workItemInfo = > em.find(WorkItemInfo.class, workItemId); > > if(workItemInfo==null){ > > return null; > > }else{ > > return workItemInfo.getWorkItem(); > > } > > > >d) Then call the execute method on the > StatefulKnowledgeSession - > which should execute the above Command object and that returns you > the > WorkItem object. > > > > Vijay > > > > > > From: rules-users-boun...@lists.jboss.org > [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Todd Pagni > Sent: Tuesday, December 08, 2009 11:16 AM > To: Rules Users List > Subject: [rules-users] Human Task Work Item > > > > >From the Mina client, how do you get a work item associated with a > human > task? > > > > I see the Task.getTaskData(), but I don't see any easy way to get > the > work item as I need the work item inparameters from the mina client > side. > > > > Thanks, > > Todd > > Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Human Task Work Item
I don't think you can get hold of workItem directly from Task the only reference Task has the workItemId. May be you can serialize the workItem and set to the content of the Task( I don't like it) - and then retrieve it later --- else I guess you have to get hold of WorkItemInfo and then workItem.. Also creation of knowledgesession is not process/time consuming so I don't see any harm in there From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Todd Pagni Sent: Tuesday, December 08, 2009 11:57 AM To: Rules Users List Subject: Re: [rules-users] Human Task Work Item Thanks for the info. I was hoping there was a way to get the work item via mina. We have a client application that is communicating with the TaskServer via mina and it would be nice if you could easily get a work item that is associated with a task instead of creating a separate knowledgesession. From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Vijay K Pandey Sent: Tuesday, December 08, 2009 11:47 AM To: Rules Users List Subject: Re: [rules-users] Human Task Work Item I guess first you have to get hold of the "workitemid" from the task data i.e. task.getTaskData().getWorkItemId(). a) Create a "Command" class which implements GenericCommand b) Implement the method "public WorkItem execute(Context context)" c) Based on the workitem id ( set this value in your command object - constructor/setter) - get hold of the WorkItemInfo object through the entity manager and then its workItem - something like this StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession(); if (workItemId==null) { return null; } EntityManager em = (EntityManager) ksession.getEnvironment().get(EnvironmentName.ENTITY_MANAGER); WorkItemInfo workItemInfo = em.find(WorkItemInfo.class, workItemId); if(workItemInfo==null){ return null; }else{ return workItemInfo.getWorkItem(); } d) Then call the execute method on the StatefulKnowledgeSession - which should execute the above Command object and that returns you the WorkItem object. Vijay From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Todd Pagni Sent: Tuesday, December 08, 2009 11:16 AM To: Rules Users List Subject: [rules-users] Human Task Work Item >From the Mina client, how do you get a work item associated with a human task? I see the Task.getTaskData(), but I don't see any easy way to get the work item as I need the work item inparameters from the mina client side. Thanks, Todd ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Human Task Work Item
Thanks for the info. I was hoping there was a way to get the work item via mina. We have a client application that is communicating with the TaskServer via mina and it would be nice if you could easily get a work item that is associated with a task instead of creating a separate knowledgesession. From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Vijay K Pandey Sent: Tuesday, December 08, 2009 11:47 AM To: Rules Users List Subject: Re: [rules-users] Human Task Work Item I guess first you have to get hold of the "workitemid" from the task data i.e. task.getTaskData().getWorkItemId(). a) Create a "Command" class which implements GenericCommand b)Implement the method "public WorkItem execute(Context context)" c) Based on the workitem id ( set this value in your command object - constructor/setter) - get hold of the WorkItemInfo object through the entity manager and then its workItem - something like this StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession(); if (workItemId==null) { return null; } EntityManager em = (EntityManager) ksession.getEnvironment().get(EnvironmentName.ENTITY_MANAGER); WorkItemInfo workItemInfo = em.find(WorkItemInfo.class, workItemId); if(workItemInfo==null){ return null; }else{ return workItemInfo.getWorkItem(); } d) Then call the execute method on the StatefulKnowledgeSession - which should execute the above Command object and that returns you the WorkItem object. Vijay From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Todd Pagni Sent: Tuesday, December 08, 2009 11:16 AM To: Rules Users List Subject: [rules-users] Human Task Work Item >From the Mina client, how do you get a work item associated with a human task? I see the Task.getTaskData(), but I don't see any easy way to get the work item as I need the work item inparameters from the mina client side. Thanks, Todd ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Human Task Work Item
I guess first you have to get hold of the "workitemid" from the task data i.e. task.getTaskData().getWorkItemId(). a) Create a "Command" class which implements GenericCommand b) Implement the method "public WorkItem execute(Context context)" c) Based on the workitem id ( set this value in your command object - constructor/setter) - get hold of the WorkItemInfo object through the entity manager and then its workItem - something like this StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession(); if (workItemId==null) { return null; } EntityManager em = (EntityManager) ksession.getEnvironment().get(EnvironmentName.ENTITY_MANAGER); WorkItemInfo workItemInfo = em.find(WorkItemInfo.class, workItemId); if(workItemInfo==null){ return null; }else{ return workItemInfo.getWorkItem(); } d) Then call the execute method on the StatefulKnowledgeSession - which should execute the above Command object and that returns you the WorkItem object. Vijay From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Todd Pagni Sent: Tuesday, December 08, 2009 11:16 AM To: Rules Users List Subject: [rules-users] Human Task Work Item >From the Mina client, how do you get a work item associated with a human task? I see the Task.getTaskData(), but I don't see any easy way to get the work item as I need the work item inparameters from the mina client side. Thanks, Todd ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Human Task Work Item
>From the Mina client, how do you get a work item associated with a human task? I see the Task.getTaskData(), but I don't see any easy way to get the work item as I need the work item inparameters from the mina client side. Thanks, Todd ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users