| | | Supreme Being
       
Group: Forum Members Last Login: Tuesday, May 17, 2011 Posts: 15, Visits: 100 |
| | Hello, I'm trying to bind a second from to my workflow and I'm getting the error message: Xml Variable "SFFormData" already Exists.Please delete the Xml Variable from "AX New Invoice Workflow" workflow in order to recreate it. If I delete the SFFormData variable and recreate it, does it then include the data for both (or many) forms? Or is there a way to have forms use a variable other than SFFormData, such as SFFormData2? Thanks! (Sorry for the newbie question)
|
| | | | Supreme Being
       
Group: Forum Members Last Login: Monday, September 12, 2011 Posts: 18, Visits: 36 |
| Hi..
At any point of tim eonly one Skelta form (Workflow Initiator) can be associated to the workflow. You would not be able to create SFFormData2 for the second form. However, there is no limit on using forms inside the workflow. Following is the detailed description with an example. - We have an Employee form with details EmpName, EmpID, Designation and let us associate/bind this to a workflow. On successful association an XMLVariable called SFFormData will be created inside a workflow which points to the Forms Schema. Now, this form will be used for triggering the workflow instance.
- Let us have one more form called Purchase Invoice which has fields like Purchase Order No, Description, Amount. If we want the workflow to trigger on submission of this Form, we will have to associate to the workflow, since SFFormData XMLVariable will be point to the old Form Schema (Employee Form), user will have to delete that XMLVariable in the Start Activity, So that Purchase Order Form can be successfully associated.
- Again, please note that this form only used to trigger the workflow instance. In the workflow, multiple forms can be used with InvokeForm Activities which can point to any form available in the ManageForm List.
- It is also necessary to have the XMLVariable pointing to Forms Schema which will help to save the Form Data. To create a Schema of a specific form, we will have to create an XMLVariable of type "XMLDocument" and using the Form explorer choose the required form from which the Schema needs to be acquired.
- In invoke Form activity, this particular variable can be set as output instance XMLVariable which will store the Form Data.
Regards,
Regards, Prashant Patil |
| |
|
|