"Wait for completion" does not work in the workflow

Zhi2
Kilo Explorer

Hi,

I have the problem when set up the workflow on my own instance. 

we developed our own portal with a page that customer can fill in the form and submit it. 

Thus, we created the server script that each time when they fill in the form and press the submit button, the information will be stored in a table called u_1.

Then, we made a workflow for this u_1 table so that each time a new record is inserted in to the u_1 table, it generates the first catalog task automatically by using the catalog task activity. When this task is finished, the second task should be generated automatically. 

After we published it, the first task can be generated automatically. But when when close the first task, the second task is not generated automatically. Actually, no matter what I did, the second task is never be generated. The workflow shows the status of first task is still running even the task is closed. 

I tried to check the "wait for completion" box and inset an "if" condition with the content "activity.result == 3", and write this content in to the advanced script in the first task activity. Never worked so far. 

I could not figure out what is the problem of it. Anyone can help me? Thank you.

 

Bedsides, we tried another way to do the workflow. 

When the customer press the submit button, the information are stored in the u_1 table, and a new request is inserted into the sc_request table. Then we created a workflow for the sc_request table. And do the same works like above. Now it works. When the first task is closed, the second task is generated automatically. But this only works when we use the sc_request table to generate the catalog tasks.    

2 REPLIES 2

Tony Chatfield1
Kilo Patron

Hi,

If the workflow is creating the first task, you should only need to use the 'Wait for completion' flag.
Perhaps you could export the flow to xml and attach here, so that people can review.

Regards Tony

Mike Patel
Tera Sage

Can you share screenshot of workfllow?