Skip to Content
Former Member
Sep 19, 2006 at 08:46 AM

current action title


Hi all,

how can I get the the title of the action which is processing at the moment.

In my solution I get an error message, maybe cause I mixed designtime-apis with runtime-apis.

String processID = executionContext.getProcessId();
String currentActionID = executionContext.getTaskId();
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(wdUser.getSAPUser() ); 
IGPAction currentAction = GPProcessFactory.getDesigntimeManager().getCurrentActionTemplate(currentActionID, userContext); 
String actionTitle = currentAction.getTitle();

Bye Steve