|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
[SOLVED] Working with Input Container for a Process Instance |
« View previous topic :: View next topic » |
Author |
Message
|
jpmorales |
Posted: Tue Jan 27, 2004 7:40 am Post subject: [SOLVED] Working with Input Container for a Process Instance |
|
|
 Novice
Joined: 13 Nov 2003 Posts: 21 Location: Bogotá, Colombia
|
We have a model where we use the process instance's container to pass data. We are not passing data on single item's containers because, for mantainabiltys sake, it is easier to define the data in a centralized fashion.
Some of our internal activities change pricess instances's input container data. However, these changes are not reflected in the container. That is, we write a value in the ReadWriteContainer for the process instance, read it again and it was written, but when looking via the web client, the value has not changed (after reloading).
Has anyone experienced this?
Is there a sort of commit operation involved in the process of writing to this container? _________________ "Entia non sund multiplicanda praeter necesitatem"
Last edited by jpmorales on Tue Feb 03, 2004 5:16 am; edited 1 time in total |
|
Back to top |
|
 |
vennela |
Posted: Tue Jan 27, 2004 8:00 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
Some of our internal activities change pricess instances's input container data. However, these changes are not reflected in the container. That is, we write a value in the ReadWriteContainer for the process instance, read it again and it was written, but when looking via the web client, the value has not changed (after reloading).
|
If I understand you correctly, I don't think this can be done. Once you start a process, there is no way you can change the input container information for that process.
I am trying to understand what you are doing.
For example, in the CreditRequest sample, when you start the process you give the first name as "vennela" and last name as "siri". When the process is half way through, you want to change the last name to something else. And you think if you change the I/P container of the process instance at this point should be reflected?
Is this the kind of thing you are trying to achieve. If yes, then you can't do that.
If you are trying to do something else then I didn't understand you right. |
|
Back to top |
|
 |
kriersd |
Posted: Tue Jan 27, 2004 10:46 am Post subject: |
|
|
 Master
Joined: 22 Jul 2002 Posts: 209 Location: IA, USA
|
jpmorales
Vennela is right.. You can not change the value of the input container, which is "READ ONLY". When you refer to the ReadWriteContainer your actually updating the OUPUT container. I would check the values in the OUTPUT container within the webclient. You should be able to see the updated value.
Good luck. _________________ Dave Krier
IBM WebSphere MQ Workflow V3.4 Solution Designer |
|
Back to top |
|
 |
vennela |
Posted: Tue Jan 27, 2004 11:58 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
You can not change the value of the input container, which is "READ ONLY". |
Dave,
I'll have to differ with you on this.
I think the inContainer is a READ/WRITE container. The output container is definitely a READ only.
The reason I/P container is a REAAD/WRITE is because if you are writing a client application yourself, to start a process instance, you issue the call
ProcessInstance.start()
or
ProcessInstance.start2(ReadWriteContainer input)
or
ProcessInstance.start3(ReadWriteContainer inContainer, java.lang.String processContext)
I am positive that web client also does the same under the covers to start a process instance.
Once this call is issued and a workflow process instance is started there is no way of going back and changing the values of the I/P container.
Quote: |
When you refer to the ReadWriteContainer your actually updating the OUPUT container. |
In any circumstance you will not be able to change the O/P container of a process instance. Workflow supplies the values and it is a READ/ONLY for any client application |
|
Back to top |
|
 |
jmac |
Posted: Tue Jan 27, 2004 12:34 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
I've never seen anyone, other than myself, try this before.
It is true that you can not update the Source Container for a ProcessInstance even though it is a ReadWrite Container (for the reasons Venny states).
I have in the past tried to do exactly what jp is attempting, and you can read the Process Instance source container at any activity, but you can not update it. The closest thing you can do is probably use the Global Data COntainer.
GOOD LUCK _________________ John McDonald
RETIRED |
|
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
|
|
|
|