help making workflow - custom approval completes immediately not waiting for set

Hi all,

Can someone help me out with this workflow creation.

What I have is an infopath form that is submitted by one user and approved by another.

I thought using the 'approval' workflow and/or action would be the way to go however there are 3 fields that the approver needs to complete when approving/rejecting (and the approve/reject, needs to be kept in the form, and not lost after 60 days purgest the workflow statuses).

So I've tried making a custom workflow, but its not working like I thought it would.

a) the workflow is set to "start when the form library is submitted" - this works but it goes straigth to Complete and doesn't appear to "do any of the steps" (although I'm not sure how to debug this - if you can even do such a thing?)

b) manually starting the workflow on an existing item does appear to work (step 1 is executed at least because it sends an email) but the problem with this is:

1) when I action the form (fill in the 3 missing fields) and submit - form is set to save over the item with same filename - it appears to crash or SOMETHING - I'm not sure if its infopath/sharepoint/the workflow, but the item disappears from the list (and is not in the recycle bin)

2) the "next" steps do not get fired (there are emails in both these steps and they don't appear to be going off).

If it helps this is essentially the workflow.

if currentitem:status is equal to "Pending"
     send email to approver
     wait for currentitem:status not to equal "Pending"
----
if currentitem:status is equal to "Approved"
     send email to workitem:initiator
----
if currentitem:status is equal to "Rejected"
     send email to workitem:initiator

Am I missing something about "wait" or how form librarys values get set and when the workflow actually kicks off?

Is there a way for a form (pref web form services but infopath also acceptable) to modify/trigger the Approve/Reject of a workflow?

August 24th, 2015 9:10pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics