Problem Renaming a Task Instance
Howdy all,
I have a problem. I am trying to rename my active sync task instance so I can see easily which task was which user. I'm trying to use the rename method of the InternalSession object. My code looks like this:
<invoke name='rename'>
<new class='com.waveset.session.InternalSession'/>
<invoke name='findType' class='com.waveset.object.Type'>
<s>TaskInstance</s>
</invoke>
<invoke name='getId'>
<invoke name='getTask'>
<ref>WF_CONTEXT</ref>
</invoke>
</invoke>
<concat>
<ref>transactionType</ref>
<s> User - </s>
<ref>accountId</ref>
<s> - </s>
<ref>dateTimeString</ref>
</concat>
<s>Workflow</s>
</invoke>
But I keep getting this error:
XPRESS <invoke> exception:
com.waveset.util.WavesetException: Can't call method rename on class com.waveset.session.InternalSession
==> com.waveset.exception.ItemNotFound: Item TaskInstance:null was not found in the repository, it may have been deleted in another session.
It seems as though the ID of the TaskInstance is null. Which seems weird. Can anyone shed any light on this? Is there something I can do to ensure the id is not null? Does anyone have any ideas?
Thanks!
Jim

