Using approval activity in a custom workflow

Hi,

I am trying to write a custom approval workflow to iterate the user’s manager attribute till it finds a Vice President in the chain.

I am successful in find the Approving person in the hierarchy.

Then I use the out of box provided “Approval Activity” in my custom wf and set the ‘Approvers’ property to the Object SID of the approving person. That’s it.

I then try to request some attribute change which should trigger this wf. The request submitted displays the status as ‘Authorizing’ , but no approval object is getting created, and no emails are send.

Please suggest what am I missing ?

January 28th, 2012 9:43pm

you should obviously fill not just the approvers property but all the email templates properties and approval threshold value also. if email templates are empty - email is not sent. you can see it in the event log on fim service server.
Free Windows Admin Tool Kit Click here and download it now
January 30th, 2012 7:11am

Firstly have you confirmed that all your email config is working properly. So a WF using the OOB Approval Activity will send an email.

Next you say you just set the approver - you should have to set a number of email templates as well.

January 30th, 2012 7:12am

Mayank,

 

If I understand this correctly, your WF applies to target obect. You obtain target object's manager attribute and continue to work your way up the manager hierarchy until user is found that has 'Vice President' in title, or something similar.

 

If this is correct I believe you should be setting the approver attribute to the Resource ID value, not the object SID(Resource SID in portal). Also, I also believe the recipient of your email will need to have their email address present in portal, as well.

Free Windows Admin Tool Kit Click here and download it now
January 30th, 2012 8:10am

Hi Eugene,

I have filled the email templates. The approval works fine. But when the escalation happens and the escalator opens the request he sees "default error page of FIM portal". Do i need to change anything in my custom WF for escalation to work properly? I have populated Escalators property and the escalation email template. The Approval threshold is 1 and approval timeout is 3 days. Is there something else i need to populate in my custom WF?

October 23rd, 2012 8:52am

check event log on FIM portal server to see what caused an error.

in most cases approver is not added to the portal as a user with domain, accountname and sid.

Free Windows Admin Tool Kit Click here and download it now
October 23rd, 2012 8:55am

In the request in fim portal, i can see the escalators name and mail also gets triggered to him/her. but when he/she tries to approve the same he gets the deafult error page. Domain,accountname and sid is present in fim portal. does my custom activity needs to be modified? if yes then which attribute i need to populate? When a user's request gets escalated what happens when the previous approver tries to approve after the approval timeout has occured?

October 23rd, 2012 9:19am

Hello, do you have any examples that you can share of how you are doing this in a custom activity?  I have a similar scenario that I am working on.

Thanks,

Scott

Free Windows Admin Tool Kit Click here and download it now
February 27th, 2015 10:01am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics