|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem setting workitem Container element |
« View previous topic :: View next topic » |
Author |
Message
|
david_sorrento |
Posted: Thu Jan 16, 2003 9:00 am Post subject: Problem setting workitem Container element |
|
|
Newbie
Joined: 12 Nov 2002 Posts: 8 Location: Dublin, Ireland
|
Hi,
I am trying to set the value of a container element of a workitem through code. I the programmatically access the workitem, retrieve its container and try to set the element I want to change.
It seems to work (i.e. no errors) but the change does not take place and the container element remains unchanged. Note that the workitem is not in a 'checked out' state. In other parts of my system, I alter container elements when the item is checked out, and when I perform a 'check in' the container item does get set.
A code snippet of what I'm doing is:
ReadWriteContainer rwc = readonlycontainer.asReadWriteContainer();
String sContainerDueDate = request.getParameter("DueDate");
rwc.setString("DueDate", sContainerDueDate);
readonlycontainer = rwc.asReadOnlyContainer();
context.setContainer(readonlycontainer);
context.setWorkItem(workItem);
note the 'context' items at the end - I am using a modified version of the IBM web client.
If anyone has any ideas I would be very grateful
thanks in advance,
David |
|
Back to top |
|
 |
vennela |
Posted: Thu Jan 16, 2003 12:02 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
jmac |
Posted: Thu Jan 16, 2003 7:07 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Jun 2001 Posts: 3081 Location: EmeriCon, LLC
|
You can change the data without a checkout IF you use the forcreRestartWithContainer (forceRestart2 in java) _________________ 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
|
|
|
|