cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow triggering only for certain doc status?

prakashkumarill
Explorer
0 Kudos

Hi Gurus

I have developed workflow which triggers on doc status changes and complete a process. when i tried to change the doc status using a transaction, the workflow is not triggering for certain status changes. the strange thing is workflow is triggering for some status changes.

For example, if i change the status from 1 to 2 or 2 to 3, the workflow is not triggerred. but if i change from 3 to 4 or 4 to 5, the workflow is triggered.

I have checked the following:

1. there is an entry in the change doc obj type <SWEC> for the event on which the workflow is triggered.

2. The change log is active. I checked the cdhdr and cdpos which shows all the status changes logged correctly.

3. All the doc statuses were entered in the field restrictions for change doc <SWEC>

Any suggestions are greatly appreciated

Accepted Solutions (0)

Answers (2)

Answers (2)

prakashkumarill
Explorer
0 Kudos

problem solved

prakashkumarill
Explorer
0 Kudos

Here is some more updates/conclusion on the problem

let me give an brief overview

1. there are field restrictions(only on some doc status change) in the change doc obj type which were set for previous workflows (these workflows are running in prod)

2. Now for this new workflow, I added in the field restrictions some more doc statuses.

Now the event which is supposed to trigger and were triggering before these modifications were made is not triggering. (Event trace is ON). So the workflow which were working before is also not functioning.

Permutations made in the field restrictions:

1. I kept only one new status which i added removing all the new status. Event triggered only for that new status added.

2. I removed all the new statuses and event triggered for all the statuses which were there before the modification. the old workflow was also started.

3. I removed one of the old status and event triggered for all the status which were there.

4. when i added the old status (the removed one) at the end, event NOT triggering for all the statuses.

5. i removed all the old status, event triggered for all the changes made in the document.

6. i added all the old status, event NOT triggered for all status

Is there anybody who have come across the scenario of changing the field restrictions which were already set?

I know this is post is really big, thanks for your help