on 09-19-2006 9:46 AM
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
Hi Steve,
Just use the following:
String processID = executionContext.getProcessId();
String currentActionID = executionContext.getTaskId();
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(wdUser.getSAPUser() );
IGPActionInstance currentAction = GPProcessFactory.getRuntimeManager().getActionInstance(processID, currentActionID, userContext);
String actionTitle = currentAction.getTemplate().getTitle();
Aliaksei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
I have one similar problem. I want to change the description of next action depending upon the current action input.
Second, where do I write these line of code...In web dynpro project or CAF project.
I think i need to convert them to some callable object.
Please reply if anyone has any idea
Regards
Saurabh Garg
Can you please tell me where we have to write this code in Web dynpro component.
In which method??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.