- In the MCS left pane, point to Products and then click Services Builder for Screens.
- From the Services Builder for Screens tree in the MCS left pane, expand the Servers tree, expand your run-time server, then choose Configure.
- From the Configure Systems page, under Select Item to Configure, double-click Log.
- Under Client-requested Event Logging, select the Enable Logging for All Event Types check box.
- In your client application, prepend
$DEBUG$ to the Job Name for the task execution.
If your client application accesses your task through
|
Follow this code sample
|
The IConnectorAccess interface |
IConnectorAccess ica = new ScreenConnectorAccessImpl();
ica.open("D:\\Attachmate\\EAI\\recordings\\myconnector\\connector\\ myconnector.xml");
ica.execute("a", "<?xml version=\"1.0\" encoding=\"UTF-8\" ?> <ScreenInputs><JobName>=$DEBUG$myDefaultJob</JobName></ScreenInputs>");
ica.close();
|
The ITask interface |
t1 bean = new t1();
bean.setPreserveContext(ITask.PRESERVE_ALWAYS);
bean.setJobName("$DEBUG$myDefaultJob");
bean.executeSync();
bean.clearContext();
|
- To view the log, after running the task, open event logging in MCS. Sort the events in the 'User' column. Your task events will be listed with the job name
'$DEBUG$myDefaultJob' .
|