on 03-07-2008 11:49 AM
Hi,
I want Create Task in UWL using web dynpro coding .
i have done some coding using UWL APIs.
when i run the application i will get an error java.lang.NoClassDefFoundError: com/sap/workflow/engine/api/IWorkflow
i think i want to give a some web dynpro references but now i have given reference like
Library reference =tckmcbc.uwl~api
Sharing reference = PORTAL:sap.com/com.sap.portal.usermapping
but i nedd to give some other reference? or how to resolve this error.
Regards,
BOOPATHI.M
hai boopathi,
try giving the library reference,
cafeugp~api in webdynpro.
Thanks n Regards
Sharanya.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Post your code here
Regards,
P.Manivannan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI ,
My Code is :
IWDClientUser clientUser = null;
IUser creator = null;
clientUser = WDClientUser.getCurrentUser();
creator = clientUser.getSAPUser();
IJWFPortalService service = (IJWFPortalService) PortalRuntime.getRuntimeResources().getService(IJWFPortalService.KEY);
IWorkflow eWF = service.getWorkflowEngineJMS();
Hashtable taskCtxt = new Hashtable();
taskCtxt.put("_wfitemtype_","uwl.notification.erp.fyi");
if(wdContext.currentVnCreateTaskElement().getVaDescription()!=null)
{
taskCtxt.put("_wfdescription_",wdContext.currentVnCreateTaskElement().getVaDescription());// "mydescription");
}
else
{
wdComponentAPI.getMessageManager().raiseException("Please enter the Description",true);
}
taskCtxt.put("_wfpriority_",wdContext.currentContextElement().getCaPriority());//new Integer (0));
if(wdContext.currentVnCreateTaskElement().getVaAssignedUser()!=null)
{
taskCtxt.put("_wftaskassignees_",wdContext.currentVnCreateTaskElement().getVaAssignedUser());//"administrator");
}
else
{
wdComponentAPI.getMessageManager().raiseException("Please enter the User",true);
}
taskCtxt.put("_wftemplatename_","QuickTask");
taskCtxt.put("_wfduedate_", dateTime);
Hashtable appCtxt = new Hashtable();
appCtxt.put("mysystem", "SAP_LocalSystem");
appCtxt.put("mylaunchcontext", "uwl");
appCtxt.put("myappcontext", "test");
if(wdContext.currentVnCreateTaskElement().getVaTitle()!=null)
{
eWF.createTask(wdContext.currentVnCreateTaskElement().getVaTitle(), creator, taskCtxt,appCtxt);
}
Regards,
Boopathi M
Where did you get the IWorkflow class from? In which DC is it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interface: Defines J2EE Interfaces used by your Web Dynpro DC
JCo: Defines the JCo Destinations used by your Web Dynpro DC
Library: Defines J2EE Libraries used by your Web Dynpro DC
Service: Defines J2EE Services used by your Web Dynpro DC
Sharing: Defines Portal applications/services used by your Web Dynpro DC
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.