Hi Rishi,
The metadata context should be persisted, based on updates made during the
tasks themselves. If you have a look at
TaskJob [1], you'll see the last step in the execute(JobInput in) method is:
{code}
// now we have to update the workflow manager with the metadata
// that may have been updated
updateMetadata(taskInput.getDynMetadata());
{code}
which should call back to the parent workflow manager and update the workflow
instance
with the current metadata. If you're not seeing this it's possible that your
XmlRpcBatchStub
on your executing node cannot see back to the parent WM running on host:port.
Is this the case?
Cheers,
Chris
On Oct 24, 2011, at 4:52 PM, Verma, Rishi (388J) wrote:
> Hi all,
>
> I'm trying to pass generated metadata from a workflow task to another
> workflow task (both in the same workflow) when using a resource manager to
> execute workflow task jobs.
>
> I've done this before successfully when workflow tasks within a given
> workflow are run locally (by the workflow manager itself) but when I point
> workflow manager to have tasks execute through a resource manager, my
> generated metadata does not seem to transfer from one task to the next.
>
> By "generated" metadata, I mean metadata that is added within the "run"
> method of an implemented WorkflowTaskInstance. It's worth noting though, that
> metadata passed into the initial XmlRpc call of a workflow task seems to be
> passed to all subsequent tasks just fine. Just not generated metadata - which
> passes only when not using a resource manager.
>
> I'm trying to ascertain if this issue is a bug or not. To find out, could
> someone elaborate a bit on which resmgr (or other) classes would include code
> that actually shows metadata for a job being passed through a remotely
> running job? I've been trying to find such code within the codebase but have
> not come across it yet.
>
> Thanks!
> rishi
>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: [email protected]
WWW: http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++