Jump to content
Sign in to follow this  
isaque.almeida

INVALID : AHD05815:Unable to update a workflow task in 'X' state

Recommended Posts

Hi experts. I'm trying to update an attribute in a workflow task by SPEL using "update_object_super" or "set_val", however for all workflow task that has "allow_update_task" checked, I receive the following message error, e.g

INVALID : AHD05815:Unable to update a workflow task in 'Wait' state.

Is there any way to overcome this by SPEL code? Cause if I just uncheck "allow_update_task", users will be able to update it.

I appreciate any help.

Thanks in advance.

Share this post


Link to post
Share on other sites

hi,

if you do not find a legal way to do that, can always "kill" that method in $NXROOT/bopcfg/majic/<wf related maj file>, method should be called something like allow_edit.

Share this post


Link to post
Share on other sites

Thanks cdtj, I solved by doing this:

I included in my code to get the task status persid and do a dob_by_persid to obtain the object tskstat factory

After this I check if the allow_update_task were 0 and if so, change it for 1 using update_object_super method

So the code can update workflow task field.

In the end I check workflow task status were one of those that had  allow_update_task were 0 previously and run another update_object_super to update for 0 again.

So it works. :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...