Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Assigning user to a role with lapi
Meera_Kanekal_(meerakanekal_-_(deleted))
We are using LAPI to create and start a new instance of a workflow. We are able to start the WF and set the attributes. However, we would like to be able to assign a user to the first role in the WF. This person is someone other than the user account used to initiate the WF and is different for each instance of the WF. Is it possible to do through the API? Thanks,meera
Find more posts tagged with
Comments
Jeff Lang
Meera,This can be done, but it's a little cryptic. I'm assuming you're not using a custom role definition, but the one that ships with LL.To set the role performer, you're essentially changing the map definition. Once you've loaded the map definition, you need to see if the following field exits.mapDefinition.MapInfo.ExAtts.LL_RoleI'm using OScript syntax here, not LAPI. You'll have to convert.If that field is defined, look at the fieldmapDefinition.MapInfo.ExAtts.LL_Role.DataThis field is an assoc. Look for the field RoleNames in this assoc. It will be a list of the role names.To assign these roles you must add a new list field to the assoc called RolePerformers, if it doesn't already exist. This list should hold the userIDs that specify the performer for each role. Value 1 in the RoleNames field is associated with value 1 in the RolePerformers field.Save the map definition and your role perfomers are set.jeff
Meera_Kanekal_(meerakanekal_-_(deleted))
Thanks Jeffmeera