1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

Getting Error while using Tokens

Discussion in 'Oracle Webcenter Suite (formerly Oracle ECM)' started by yaznesh, Feb 24, 2009.

  1. yaznesh

    yaznesh Forum Advisor

    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    160
    Location:
    Hyderabad
    hi sadik,

    please help me below issue,

    when i am using Stellent content server , I created a criteria workflow , in that workflow i used token for a step .. i was able to login for specified user in token. but i unable to trigger to another workflow.( here i created jump conditon for target step)

    when i login to specified user as token .its unable to work review action like (approve/reject)

    i got an error like below...

    Content Server Request Failed
    Unable to approve content item 'CHKDOC02'. The user is not a reviewer for the content item at step Head_of_Dept.

    2) let me know , how to create Tokens using filed attribute ?? how its works ??

    when i given specified user, its got released , when checkin docments .its did't not go to the Review state


    i humble requsting to you...to solve this issue.


    do needful ,
    yaznesh
     
  2. markH

    markH Forum Advisor

    Messages:
    88
    Likes Received:
    10
    Trophy Points:
    180
    Location:
    Kansas
    you got the error because your token was unable to evaluate to a specific user or class of users. I explained you the usage on this thread:

    How to use Tokens using stellent
     
  3. yaznesh

    yaznesh Forum Advisor

    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    160
    Location:
    Hyderabad
    hi ,
    Thank you for ur Reply,

    but, even i have also used this condition as a token <$wfAddUser(getUserValue("uHOD"), "user")$> its showed error.

    in actual scenario, i have created one user called Suresh and i kept Reveiwer name as jordan in suresh's HOD attribute filed.

    But , In my workflow, an item is routed to a user's HOD ( Head of Dept). The user in the step is set with the following token:
    <$ wfAddUser(getUserValue('uHOD'), "user")$>

    The HOD gets an email notification and the workflow shows up in the HOD’s queue. So the s HOD 's ID has been correctly added to the workflow.

    But the HOD gets an error if attempting to approve or reject the workflow item. The error message is:
    Unable to approve content item 'SD-000043'. The user is not a reviewer for the content item at step Approval_by_HOD.

    The workflow is then stuck and has to be cleared by the sysadmin.


    so, Kindly resolve this issue. please save me ....

    Do needful
     
  4. Sadik

    Sadik Community Moderator Forum Guru

    Messages:
    1,906
    Likes Received:
    252
    Trophy Points:
    1,455
    I tried out your scenario and yes i am getting the error too. I couldn't figure out really what was missing. Interestingly no documentation exists for the error. You should raise an SR with Oracle for this.

    Interestingly i see some issues with your design. Will every user have different HODs? wouldn't it be a better idea to have a custom metadata field for Department. When a user checks in a document he should select the department from an option list and you can have criteria workflows based on department values. WOuld be easier, scalable. You can create aliases for your HOD and add alias to your criteria workflow. Then if your HOD changes, you just need to change user in the alias.
     
  5. markH

    markH Forum Advisor

    Messages:
    88
    Likes Received:
    10
    Trophy Points:
    180
    Location:
    Kansas
    i agree Sadik, fixing HODs per user is not a good solution, yaznesh. You should follow Sadik's advice. If you make profiles for departments, the user won't even have to select the department.

    Howver if you must use the TOKEN approach, you should raise an SR with oracle because i wouldn't dispute Sadik's word on that :p
     
  6. yaznesh

    yaznesh Forum Advisor

    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    160
    Location:
    Hyderabad
    hi all,

    i got solved this issue,

    now i have sucessfully reached to another step,

    i tried out a code ..now, its accespting approve / rejection condition,

    if anybody facing a problem using tokens to the approval and rejection condition for specified user
    hopefully the following step will helpful, please try this

    Code (Text):
    <$getValueForSpecifiedUser(wfGet(dDocAuthor,"uManager"))$>
    Regards,
    yaznesh
     
    Sadik likes this.
  7. Sadik

    Sadik Community Moderator Forum Guru

    Messages:
    1,906
    Likes Received:
    252
    Trophy Points:
    1,455
    hi yaznesh, thanks for posting the solution, appreciated!
     
  8. yaznesh

    yaznesh Forum Advisor

    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    160
    Location:
    Hyderabad
    hi,

    i had find out a code for user field attributes of tokens

    hopefully, u can use this code

    it may helpful ...

    Code (Text):

    <$wfAddUser(getValueForSpecifiedUser(dDocAuthor,"uManager"),"user"$>
    regards,
    yaznesh
     
    Sadik likes this.
  9. Sadik

    Sadik Community Moderator Forum Guru

    Messages:
    1,906
    Likes Received:
    252
    Trophy Points:
    1,455
    hi, so with this ur HOD is able to approve/reject without the error?
     
  10. yaznesh

    yaznesh Forum Advisor

    Messages:
    61
    Likes Received:
    2
    Trophy Points:
    160
    Location:
    Hyderabad
    hi,

    why not ??

    i have resolved my issue using tokens for user attribute field,
    now my mind got free ...

    i added this code for similar workflows using token...

    please try once..

    Regards,
    yaznesh