|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[Solved]Set Data Structure values in Handler |
« View previous topic :: View next topic » |
Author |
Message
|
atse |
Posted: Mon Feb 07, 2005 9:03 am Post subject: [Solved]Set Data Structure values in Handler |
|
|
Novice
Joined: 01 Feb 2005 Posts: 14
|
I'm using Web Client with Workflow, and I'm using a few custom handlers to handle different actions on a page. On the jsp of one of the activities, I have this id value (defined in the workflow data structure) that I let the user define. When that activity is finished however, my custom handler checks to see if the user-defined id is valid, and if not, a valid id is automatically assigned. Does anyone know how I can reset the id value to the new value in the handler, so that in the next activity, the id shown will not be the user input, but the new assigned id? Thanks in advance for anyone's help
Last edited by atse on Tue Feb 15, 2005 6:56 am; edited 1 time in total |
|
Back to top |
|
 |
Ratan |
Posted: Mon Feb 07, 2005 5:51 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
I am not sure what you are asking for. If your handler is changing the ID field and checking in the workitem, the next activity should have that info if the ID field is mapped to the next activity. _________________ -Ratan |
|
Back to top |
|
 |
atse |
Posted: Tue Feb 08, 2005 5:53 am Post subject: |
|
|
Novice
Joined: 01 Feb 2005 Posts: 14
|
That's my problem....how do you even set this id value in the handler? What methods do you use to get and set values that belong to the data structure? Are they treated the same as parameters and attributes that you define in a jsp? If they are, how come when I tried to use request.setParameter and setAttribute to set it, neither worked. I even tried getting the container of the workitem using method workitem.outContainer and setting the id value using method container.setLong, but the changed value doesn't get carried through to the next activity.
On that note, I have another question. I see that there's an inContainer and outContainer method for WorkItem, ActivityInstance, and ProcessInstance. What are the differences? Especially the containers for ActivityInstance and WorkItem, I thought ActivityInstance and WorkItem are the same thing. I hope this is clearer in what I am trying to ask. And thanks for your help! |
|
Back to top |
|
 |
Ratan |
Posted: Wed Feb 09, 2005 4:33 pm Post subject: |
|
|
 Grand Master
Joined: 18 Jul 2002 Posts: 1245
|
Quote: |
I even tried getting the container of the workitem using method workitem.outContainer and setting the id value using method container.setLong, but the changed value doesn't get carried through to the next activity.
|
Did you check if you are mapping the data to the next activity.
Quote: |
I have another question. I see that there's an inContainer and outContainer method for WorkItem, ActivityInstance, and ProcessInstance. What are the differences? Especially the containers for ActivityInstance and WorkItem, I thought ActivityInstance and WorkItem are the same thing. I hope this is clearer in what I am trying to ask. And thanks for your help! |
There can be many workitems for each activity instance depending on the staff assignment. _________________ -Ratan |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|