cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

We have problem with workflow tasks. We are a insurance company using SAP CRM 7.0.


The scenario is:

- A new customer is registred.

- Class A creates the business partner and a contract transaction.

- Class A then calls Class B which generates a workflow task by calling  cl_swf_evt_event=>raise with the new class name and event 'STARTA'.

- When the workflow task is executed a method in Class B is called which generates a print activity (smartform) and save some data in a Z-table. It is very simple and should not be assigned to any users/groups or similar.

This have worked fine. Now, I have renamed Class B to a more generic name since the previous class name was too specific.

After this change, the workflow task is not executed automatically anymore. I have to setup batch job SWWDHEX (RSWWDHEX) to run every minute to execute the workflow task

In workflow task I have put the new class name instead of the old and activated the triggering event to new class name .

I have also updated the event type linkage in SWETYPV. What more must be done to able the workflow task to execute automatically?

Best regards

Andreas

0 Likes
View Entire Topic
nishantbansal91
Active Contributor
0 Likes

Hi Andreas,

It's nothing related to your class.  So do one thing Please follow the below step.

1. GO TO swu3->Maitain_Runtime_environment-> Schedule background job for worklfow deadline monitoring.

Set the value and save it. Then no need to execute it manually.


Thanks

Nishant

anhamren
Discoverer
0 Likes

Hi Nishant,

But before changing the class we did not need this batchjob but now we do. We would prefer to have the tasks executed automatically and then have the batchjob running as a safety check to make sure all tasks is executed.

Regards Andreas

nishantbansal91
Active Contributor
0 Likes

Hi Andreas,

This job is the part of customization.

That job is required for workflow processing of task and deadline monitoring.

I think there might be change in the setting. Please check with basis team about the job was running or not.


Thanks

Nishant