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
Workflow - Identify Previous Step
Jeremy_Johnson_(IRSCRI012_(Delete)_2589826)
Is it possible to determine the previous workflow step? I'd like to figure out who performed the previous step in order to determine how to assign the next step.Thanks,Jeremy Johnson
Find more posts tagged with
Comments
Jeff_Lang_(lang_(Delete)_2245920)
It's a bit hard to do this consistantly because a step can have multiple previous steps if it is a rendevous step. You can do this way:call WAPI.LoadMapByID( map, subwork_mapID )get the mapRec field value mapRec = map.pPainterthis field contains a workflow definition. Get the LINKS recArraylinks = mapRec.LINKSwalk this recArray looking for the current stepID. Now find all steps that link to this stepID. That will give you the ID of the previous step.