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

Workflow task is not executed

09-30-2015 10:29 AM
anhamren Discoverer
1179 views 7 comments
0 Likes
SAP Managed Tags
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

Accepted Solutions (0)

Answers (2)

Answers (2)

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

Former Member
0 Likes

Hi Andreas,

After execution of workflow did you checked the log? what it is saying ?

Regards,

Murali Krishna.

anhamren
Discoverer
0 Likes

Hi Murali,

Where do I see the log? (I am not very experienced in workflow).

Regards Andreas

Former Member
0 Likes

Hi Andreas,

The below link will help you to check the log.

Read the Workflow Technical Log - Wiki - SCN Wiki

Regards,

Murali Krishna,

anhamren
Discoverer
0 Likes

Hi,

Thanks! I have now checked the log. As long as the batchjob SWWDHEX was not running nothing end up in the log for this task type. When the batchjob was scheduled and all task was executed the log shows all tasks as completed.

Regards Andreas