<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.11.81 (http://www.squarespace.com/) on Thu, 16 Feb 2012 18:40:35 GMT--><feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><title>Knowledge Base</title><subtitle>Knowledge Base</subtitle><id>http://community.workflowgen.com/kb/</id><link rel="alternate" type="application/xhtml+xml" href="http://community.workflowgen.com/kb/"/><link rel="self" type="application/atom+xml" href="http://community.workflowgen.com/kb/atom.xml"/><updated>2012-01-27T15:35:11Z</updated><generator uri="http://www.squarespace.com/" version="Squarespace Site Server v5.11.81 (http://www.squarespace.com/)">Squarespace</generator><entry><title>Form Designer: Display the current user's first and last name in the web form</title><category term="Form Designer"/><id>http://community.workflowgen.com/kb/form-designer-display-the-current-users-first-and-last-name.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/form-designer-display-the-current-users-first-and-last-name.html"/><author><name>WFG Team</name></author><published>2012-01-27T14:46:38Z</published><updated>2012-01-27T14:46:38Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><a href="http://vimeo.com/user4160701/review/35259746/13f1c4fa54">Launch the video</a></p>]]></content></entry><entry><title>Form Designer: Define form fields validation rules</title><category term="Form Designer"/><id>http://community.workflowgen.com/kb/form-designer-define-form-fields-validation-rules.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/form-designer-define-form-fields-validation-rules.html"/><author><name>WFG Team</name></author><published>2012-01-27T14:44:33Z</published><updated>2012-01-27T14:44:33Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><a href="http://vimeo.com/user4160701/review/35260053/ffb63df5da">Launch the video</a></p>]]></content></entry><entry><title>Form Designer: Use a regular expression</title><category term="Form Designer"/><id>http://community.workflowgen.com/kb/form-designer-use-a-regular-expression.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/form-designer-use-a-regular-expression.html"/><author><name>WFG Team</name></author><published>2012-01-27T14:42:36Z</published><updated>2012-01-27T14:42:36Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><a href="http://vimeo.com/user4160701/review/35260494/7484d9da1e">Launch the video</a></p>]]></content></entry><entry><title>Form Designer: How to align form fields</title><category term="Form Designer"/><id>http://community.workflowgen.com/kb/form-designer-how-to-align-form-fields.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/form-designer-how-to-align-form-fields.html"/><author><name>WFG Team</name></author><published>2012-01-27T14:34:31Z</published><updated>2012-01-27T14:34:31Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><a href="http://vimeo.com/user4160701/review/35259009/149f03c9cf.">Launch the video</a></p>]]></content></entry><entry><title>How do I notify team members of a potential action to-do if they are not assigned to the action?</title><id>http://community.workflowgen.com/kb/how-do-i-notify-team-members-of-a-potential-action-to-do-if.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/how-do-i-notify-team-members-of-a-potential-action-to-do-if.html"/><author><name>WFG Team</name></author><published>2012-01-27T14:10:20Z</published><updated>2012-01-27T14:10:20Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Issue</span></p>
<p>How do I notify team members of a potential action to-do if they are not assigned to the action?</p>
<p><span style="text-decoration: underline;">Background</span></p>
<p>Since a WFG action can only be assigned to one user at a time there exist options to automatically target the assigned&nbsp;user when sending out a notification. When configuring an additional action notification you can accomplish this by selecting the recipient option &lsquo;Action assignee&rsquo;. No matter the selected event used when configuring an additional notification, selecting &lsquo;Action assignee&rsquo; will always target the current assigned user.</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>You may be asking youself at this point... what about when an action is not assigned to a specific user and instead the action is to be handled by a team using the &ldquo;Self-Service&rdquo; assignment method? In this case, even though the action is technically not assigned to a user, WorkflowGen will automatically interpret the &lsquo;Action assignee&rsquo; recipient option to mean all team members and therefore all team members will receive the email*.</p>
<p>When sending an &lsquo;Automatic: To do&rdquo; email and the action is assigned, the recipient will receive an email with a link to directly launch the action from the email. If the same event (To do) is used when sending an additional notification to a team (action is not assigned), the team will receive a similar default email but since the action is not assigned to a user, the link to directly launch the action will not be present.</p>
<p>*The number of users receiving this email will be limited to the number provided in the configuration panel&rsquo;s &lsquo;Maximum number of users to notify&rsquo; parameter.</p>]]></content></entry><entry><title>Can I assign an external file to a FileUpload control during submission of webform?</title><category term=".Net Web Form"/><id>http://community.workflowgen.com/kb/can-i-assign-an-external-file-to-a-fileupload-control-during.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/can-i-assign-an-external-file-to-a-fileupload-control-during.html"/><author><name>WFG Team</name></author><published>2012-01-16T14:31:00Z</published><updated>2012-01-16T14:31:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Issue</span></p>
<p>Can&nbsp;I assign an external file to a FileUpload control during submission of a web form?</p>
<p><span style="text-decoration: underline;">Background</span></p>
<p>A file may not be uploaded via any FileUpload control but the file needs to be associated to the FileUpload control. It is applicable to WorkflowGenFileUpload control in SimpleMode only. Standard .NET FileUpload control does not have the ability to display uploaded file. Also this can only be done during submission of a web form.</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>Since the WorkflowGenPage engine will NOT create a new node in the FormData xml file if there is no file uploaded via a FileUpload Control, manual intervention&nbsp;is required to associate a file to the control. This procedure must be done AFTER the call of SubmitToWorkflow().</p>
<p><br />Assuming there is a WorkflowGenFileUpload control with an ID &ldquo;REQUEST_ATTACH&rdquo;:&nbsp;</p>
<blockquote>
<p>//--- trigger SubmitToWorkflow to get ready for the closure of an action<br />SubmitToWorkflow(this.FormData);<br /><br />//---- associate file to the file upload control after SubmitToWorkflow()---<br />//---- upload FormData with all the form field controls<br />SaveFieldsData(this.FormData);<br /><br />//---- make sure the FileUpload control is available in FormData<br />if (!this.FormData.Tables[0].Columns.Contains("REQUEST_ATTACH"))<br />{&nbsp;&nbsp; &nbsp;&nbsp;this.FormData.Tables[0].Columns.Add("REQUEST_ATTACH");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br /><br />//----- copy file from source to the UPLOAD/REQUEST_ATTACH folder<br />string CopiedFileName = "[your file name]";<br />string destFolder = StoragePath + "\\UPLOAD\\REQUEST_ATTACH\\";<br />string destFile = Path.Combine(destFolder, CopiedFileName);<br /><br />//---- make sure the destination folder is ready ---<br />if (!Directory.Exists(destFolder)) <br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Directory.CreateDirectory(destFolder);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p><br />//---- copy the file destination folder<br />string sourceFile = "[the source of your file]";<br />File.Copy(sourceFile, destFile, true);</p>
<p>//--- update the node for REQUEST_ATTACH ---<br />this.FormData.Tables[0].Rows[0]["REQUEST_ATTACH"] = "UPLOAD\\REQUEST_ATTACH\\" + CopiedFileName;</p>
//--- call SaveFormData to update the FormData Xml file without adding the schema information<br />SaveFormData(this.FormData, false);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="_marker">&nbsp;</span>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt;"><span style="line-height: 115%; font-family: &amp;amp;amp; font-size: 9pt;"><span style="color: #000000;">//--- trigger SubmitToWorkflow to get ready for the closure of an action<br />SubmitToWorkflow(this.FormData);<br /><br />//---- associate file to the file upload control after SubmitToWorkflow()---<br />//---- upload FormData with all the form field controls<br />SaveFieldsData(this.FormData);<br /><br />//---- make sure the FileUpload control is available in FormData<br />if (!this.FormData.Tables[0].Columns.Contains("REQUEST_ATTACH"))<br />{<span style="mso-spacerun: yes;">&nbsp;&nbsp; </span><span style="mso-spacerun: yes;">&nbsp;&nbsp;</span>this.FormData.Tables[0].Columns.Add("REQUEST_ATTACH");<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}<br /><br /><br />//----- copy file from source to the UPLOAD/REQUEST_ATTACH folder<br />string CopiedFileName = "[your file name]";<br />string destFolder = StoragePath + "\\UPLOAD\\REQUEST_ATTACH\\";<br />string destFile = Path.Combine(destFolder, CopiedFileName);<br /><br />//---- make sure the destination folder is ready ---<br />if (!Directory.Exists(destFolder)) <br />{<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>Directory.CreateDirectory(destFolder);<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt;"><span style="line-height: 115%; font-family: &amp;amp;amp; font-size: 9pt;"><br /><span style="color: #000000;">//---- copy the file destination folder<br />string sourceFile = "[the source of your file]";<br />File.Copy(sourceFile, destFile, true);</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 10pt;"><span style="line-height: 115%; font-family: &amp;amp;amp; font-size: 9pt;"><span style="color: #000000;">//--- update the node for REQUEST_ATTACH ---<br />this.FormData.Tables[0].Rows[0]["REQUEST_ATTACH"] = "UPLOAD\\REQUEST_ATTACH\\" + CopiedFileName;</span></span></p>
<span style="line-height: 115%; font-family: &amp;amp;amp; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-CA; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"><span style="color: #000000;">//--- call SaveFormData to update the FormData Xml file without adding the schema information<br />SaveFormData(this.FormData, false);<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></blockquote>
<p style="padding-left: 30px;"><span style="color: #181818;">&nbsp;</span></p>]]></content></entry><entry><title>I am not able to connect to the WFGEN database even when the user is defined in WFGEN database as a valid user.</title><id>http://community.workflowgen.com/kb/i-am-not-able-to-connect-to-the-wfgen-database-even-when-the.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/i-am-not-able-to-connect-to-the-wfgen-database-even-when-the.html"/><author><name>WFG Team</name></author><published>2012-01-09T14:56:00Z</published><updated>2012-01-09T14:56:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Issue</span></p>
<p>I am not able to connect to the WFGEN database even when the user is defined in WFGEN database as a valid user.</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>The user account may be missing certain permissions. Please make sure the following conditions are fulfilled.</p>
<p>In SQL Server Management Studio</p>
<ul>
<li>Under the "Security" --&gt; "Logins" node, make sure the user account for the database connection is defined</li>
<li>Right click on the user account and view Properties, look under "User Mapping". Make sure the WFGEN database is checked (i.e. user is mapped to the login for WFGEN database). If you are not able to map the selected user for the WFGEN database, try to delete this user from the WFGEN database --&gt; "Security" --&gt; "Users" list first. Once the user account is mapped, it should automatically appear under the database "WFGEN" --&gt; "Security" --&gt; "Users".</li>
<li>Right click on the user from the WFGEN database user list and view properties, look under "General" and make sure the "Database role membership" has the proper role member(s) selected. To use the account for the WFGEN database connection string, it must have read and write permission. Preferably "db_owner" should be selected.</li>
</ul>]]></content></entry><entry><title>How do I trigger WorkflowGen SubmitToWorkflow from a user control?</title><category term=".Net Web Form"/><id>http://community.workflowgen.com/kb/how-do-i-trigger-workflowgen-submittoworkflow-from-a-user-co.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/how-do-i-trigger-workflowgen-submittoworkflow-from-a-user-co.html"/><author><name>WFG Team</name></author><published>2011-10-12T14:00:05Z</published><updated>2011-10-12T14:00:05Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Issue</span></p>
<p>How do I trigger WorkflowGen SubmitToWorkflow from a user control?</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>To trigger the WorkflowGen SubmitToWorkflow from a user control you will need to set up delegate and event declaration to associate the button in your user control to communicate with the SubmitToWorkflow method in the main webform. Assuming there is a user control &ldquo;UserCtrl1&rdquo; (with and instance ID &ldquo;uc1&rdquo; used on the main aspx page) and inside the user control there is a button called "btnSubmit"</p>
<p>In your UserControl ascx.cs page:</p>
<blockquote>
<p>public partial class UserCtrl1 : System.Web.UI.UserControl<br />{<br />&nbsp;&nbsp;&nbsp; // Delegate declaration<br />&nbsp;&nbsp;&nbsp; public delegate void <strong>OnSubmitButtonClick</strong>(string strValue);</p>
<p>&nbsp;&nbsp; &nbsp;// Event declaration<br />&nbsp;&nbsp;&nbsp; public event <strong>OnSubmitButtonClick</strong> btnUserCtrlSubmitHandler;</p>
<p>&nbsp;&nbsp;&nbsp; /// &lt;summary&gt;<br />&nbsp;&nbsp;&nbsp; /// in case of the submit button in user control is clicked, <br />&nbsp;&nbsp;&nbsp; /// trigger the SubmitButtonClick event that reference to <br />&nbsp;&nbsp;&nbsp; /// UserCtrl1_btnUserCtrlSubmitHandler event on the main page<br />&nbsp;&nbsp;&nbsp; /// &lt;/summary&gt;<br />&nbsp;&nbsp;&nbsp; protected void <strong>btnSubmit_Click</strong>(object sender, EventArgs e)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //---- call the event handler&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (btnUserCtrlSubmitHandler != null)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { btnUserCtrlSubmitHandler(string.Empty); }<br />&nbsp;&nbsp;&nbsp; }</p>
<p>}</p>
</blockquote>
<p>&nbsp;In the main aspx.cs page, under Page_load:&nbsp;&nbsp;&nbsp;</p>
<blockquote>
<p>//----- this is to add an event handler that allow user to call SubmitToWorkflow();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uc1.btnUserCtrlSubmitHandler += new UserCtrl1.OnSubmitButtonClick(uc1_btnUserCtrlSubmitHandler);</p>
</blockquote>
<p>&nbsp;Under the partial class of the main aspx.cs page, add the handler:&nbsp;</p>
<blockquote>
<p>void uc1_btnUserCtrlSubmitHandler(string strValue)<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SubmitToWorkflow();&nbsp;&nbsp;&nbsp; }&nbsp;</p>
</blockquote>
<p>&nbsp;In short, the sequence is as follows:</p>
<ul>
<li>uc1.btnSubmit is clicked</li>
<li>btnSubmit_Clicked is triggered</li>
<li>trigger btnUserCtrlSubmitHandler event handler</li>
<li>relay event type btnUserCtrlSubmitHandler to uc1_btnUserCtrlSubmitHandler</li>
<li>call SubmitToWorkflow()</li>
</ul>
<p>&nbsp;</p>]]></content></entry><entry><title>Using Form Authentication, I am not able to launch the webform and receive a 401 error.</title><category term=".Net Web Form"/><category term="Setup"/><id>http://community.workflowgen.com/kb/using-form-authentication-i-am-not-able-to-launch-the-webfor.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/using-form-authentication-i-am-not-able-to-launch-the-webfor.html"/><author><name>WFG Team</name></author><published>2011-10-12T13:49:15Z</published><updated>2011-10-12T13:49:15Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Issue</span></p>
<p>Using Form Authentication, I am not able to launch the webform and receive a 401 error. Furthermore the 401 security error&nbsp;is received even when the webform folder has permission to all users.</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<ol>
<li>Make sure the user logging on to WorkflowGen is part of either the local or domain user group. Make sure the user group has access permission to the webform folder.</li>
<li>In the web.config file of the webform folder, make sure the following key is omitted:&nbsp;</li>
</ol>
<p>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;authentication mode="Windows"/&gt;</p>
<p style="padding-left: 30px;">By default Windows webfolder will have this key enabled with mode = Windows meaning IIS will manage the authentication mode (Basic or Integrated). When using Form Authentication, you should either NOT have this authentication mode specified in the web form config file as per #2 above, or&nbsp;set the mode to &ldquo;form&rdquo;</p>
<p style="padding-left: 30px;">&nbsp;E.g. &lt;authentication mode="form"/&gt;</p>
<p>&nbsp;</p>]]></content></entry><entry><title>Why can't I edit the mapping in my Active Directory Synchronization?</title><category term="Directory synchronization"/><category term="Setup"/><id>http://community.workflowgen.com/kb/why-cant-i-edit-the-mapping-in-my-active-directory-synchroni.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/why-cant-i-edit-the-mapping-in-my-active-directory-synchroni.html"/><author><name>WFG Team</name></author><published>2011-10-12T13:43:52Z</published><updated>2011-10-12T13:43:52Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Issue</span></p>
<p>Why can't I edit the mapping in my Active Directory Synchronization?</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>With the selection of &ldquo;Active Directory&rdquo; as Directory connector, you cannot edit the mapping of the user profile. Mapping will be based on the default settings for MS Active Directory. If you need to customize the mapping, you must instead use &ldquo;LDAP&rdquo;&nbsp;with all the required properties defined in your LDAP query. At&nbsp;that point you will be able to edit the mappings within WorkflowGen.</p>]]></content></entry><entry><title>My webform is submitted even if I have not provided input for required fields.</title><category term=".Net Web Form"/><id>http://community.workflowgen.com/kb/my-webform-is-submitted-even-if-i-have-not-provided-input-fo.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/my-webform-is-submitted-even-if-i-have-not-provided-input-fo.html"/><author><name>WFG Team</name></author><published>2011-09-12T14:27:00Z</published><updated>2011-09-12T14:27:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;"><span style="color: #181818;">Issue</span></span></p>
<p><span style="color: #181818;">My webform is submitted even if I have not provided input for required fields.</span></p>
<p><span style="color: #181818;"><span style="text-decoration: underline;">Solution</span></span></p>
<p><span style="color: #181818;">There are 2 possible causes for this issue.</span></p>
<ol>
<li><span style="color: #181818;">If you use your own submit button with a custom ID (e.g. btnSubmit) instead of the default WorkflowGen submit button ID (SubmitButton), you need to provide the following&nbsp;attribute: &ldquo;ValidationGroup = &ldquo;WFGENPage&rdquo;. For more&nbsp;details&nbsp;click <a href="http://community.workflowgen.com/kb/my-net-validator-does-not-trigger-the-validation-error-messa.html">here</a>.</span></li>
<li><span style="color: #181818;">You have included custom validation using JavaScript and the code breaks at some point. </span></li>
</ol>
<p style="padding-left: 30px;"><span style="color: #181818;">For example:</span></p>
<blockquote>
<p><span style="color: blue;" lang="EN-US">function YOUR_JAVASCRIPT_FUNCTION(source, arguments)<br />{<br />&nbsp;&nbsp;&nbsp; var ValidateResult = true;<br />&nbsp;&nbsp; &nbsp;<br />&nbsp;&nbsp;&nbsp; // ---- your javascript code to set the ValudateResult ---- //<br /><br />&nbsp;&nbsp;&nbsp; arguments.IsValid = ValidateResult; <br />}</span>&nbsp;&nbsp;</p>
</blockquote>
<p style="padding-left: 30px;"><span style="color: #181818;">If there&nbsp;is an error in your JavaScript code&nbsp;that is not being trapped properly, the JavaScript code will break and end the execution of the WorkflowGen validation process&nbsp;and allow&nbsp;WorkflowGen to submit without considering the form&nbsp;invalid.<br /><br />To make sure your custom code functions correctly for debugging, you can do the following:</span></p>
<ul>
<li>&nbsp;
<ul>
<li><span style="color: #181818;">Add a regular .NET button with an ID not equal to &ldquo;SubmitButton&rdquo; and with ValidationGroup=&rdquo;WFGENPage&rdquo;. It will just perform a post back of your web form without submitting it to WorkflowGen while it will still trigger WorkflowGen form validation process.</span></li>
<li><span style="color: #181818;">Add a JavaScript alert() function to show your custom validation result. If the alert is not triggered this may signify that&nbsp;a line of code breaks. You can consider using some external debugger like FireBug to trace which line causes the error.</span></li>
</ul>
</li>
</ul>]]></content></entry><entry><title>Why do I receive the following error “Error during the process workflow - Transaction failed. The server response was: Relay access denied”?</title><category term="Administration"/><id>http://community.workflowgen.com/kb/why-do-i-receive-the-following-error-error-during-the-proces.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/why-do-i-receive-the-following-error-error-during-the-proces.html"/><author><name>WFG Team</name></author><published>2011-09-02T14:13:00Z</published><updated>2011-09-02T14:13:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><strong><span style="text-decoration: underline;">Issue</span></strong></p>
<p>Why do I receive the following error&nbsp;&ldquo;Error during the process workflow - Transaction failed. The server response was:&nbsp;Relay access denied&rdquo;?</p>
<p><br /><span style="text-decoration: underline;"><strong>Solution</strong></span></p>
<p>This error is related to the SMTP setting in WorkflowGen.&nbsp;WorkflowGen is not able to trigger the notification at the beginning of the first action. Make sure the SMTP server in WorkflowGen configuration panel is valid.</p>]]></content></entry><entry><title>How to add a file attachment to my WorkflowGen email notification?</title><category term="Process design"/><id>http://community.workflowgen.com/kb/how-to-add-a-file-attachment-to-my-workflowgen-email-notific.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/how-to-add-a-file-attachment-to-my-workflowgen-email-notific.html"/><author><name>WFG Team</name></author><published>2011-08-23T14:44:29Z</published><updated>2011-08-23T14:44:29Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Question</span></p>
<p>How to add a file attachment to my WorkflowGen email notification?</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>WorkflowGen version 5.3 and newer allows process data of type 'File' to be included in WorkflowGen email notifications as file attachments.</p>
<p>While system&nbsp;default templates can be modified to include attachments it is never recommeded to modify them as these templates are used system wide and&nbsp;changes may impact processes with undesirable results.</p>
<p>Instead, it is recommend to create custom templates&nbsp;when you want to use an email notification with&nbsp;file attachments.&nbsp;Custom templates are specific to a process and will not affect other processes. For more information on custom template, click <a href="http://community.workflowgen.com/kb/how-to-customize-workflowgen-notification-subject-lines.html">here</a>.</p>
<p>In your custom template include the following tag:</p>
<blockquote>
<p>&lt;WF_PROCESS_INST_RELDATA_FILE.DATANAME&gt;</p>
</blockquote>
<p>where 'DATANAME' is the name of the process data containing the file you wish to add as an attachment. WorkflowGen will parse the template and replace the tag with a file attachment. It is not important where the tag is placed with the exception of the first line of the file. This line is reserved for the email subject (if used). If you are using an HTML email we recommend placing the tag somewhere within the tag.</p>
<p>&nbsp;</p>]]></content></entry><entry><title>How to compose a WorkflowGen hyperlink to a process data of type 'File'</title><category term=".Net Web Form"/><id>http://community.workflowgen.com/kb/how-to-compose-a-workflowgen-hyperlink-to-a-process-data-of.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/how-to-compose-a-workflowgen-hyperlink-to-a-process-data-of.html"/><author><name>WFG Team</name></author><published>2011-08-23T13:34:08Z</published><updated>2011-08-23T13:34:08Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p><span style="text-decoration: underline;">Question</span></p>
<p>How to compose a WorkflowGen hyperlink to a process data of type 'File'.</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>The proposed solution below applies to WorkflowGen Version 5.2 and previous. WorkflowGen 5.3 and above includes&nbsp;out-of-the-box functionality that allows for file attachments in WFG email notifications. Click<a href="http://community.workflowgen.com/kb/how-to-add-a-file-attachment-to-my-workflowgen-email-notific.html"> here</a>&nbsp;to see more&nbsp;details.</p>
<p>In order to compose a hyperlink to a process data of type File in WorkflowGen you must first query the database to retrieve information relating to the actual file. The following SQL query will extract the necessary information to build the hyperlink.</p>
<p>The hyperlink created will respect both&nbsp;WorkflowGen and process data security</p>
<p><strong>Query&nbsp;</strong></p>
<blockquote>
<p>select w.id_process , wir.id_reldata, wir.id_dataset <br />from wfprocess_inst_reldata wir left join wfreldata w on wir.id_reldata=w.id_reldata <br />join wfdataset_value wv on wir.id_dataset=wv.id_dataset join wfprocess_inst wi on wir.id_process_inst=wi.id_process_inst <br />where w.name='[DataElementName]' and wir.id_process_inst=[requestID]&nbsp;&nbsp;&nbsp;</p>
</blockquote>
<p><strong>Query Parameters</strong></p>
<p>[DataElementName] = WFG data name (e.g. FORM_ARCHIVE)</p>
<p>[requested] = WFG request number</p>
<p>&nbsp;</p>
<p><strong>Result</strong></p>
<p>The SQL query will return 3 column values:</p>
<p>id_process = WFG process ID</p>
<p>id_reldata = Related data ID for the target process data</p>
<p>id_dataset = ID of the process data</p>
<p><strong>URL&nbsp;</strong></p>
<p>Once we obtain these 3 values we can compose the URL for the file download link:</p>
<p>http://[your server name]/wfgen/show.aspx?QUERY=DATASET_FILE_DOWNLOAD&amp;ID_PROCESS=[id_process]&amp;ID_RELDATA=[id_reldata]&amp;ID_DATASET=[id_dataset]&amp;NUM_VALUE=1&amp;ATTACHMENT=[SaveDocumentPopup]</p>
<p>[SaveDocumentPopup] = N=open document in browser, Y=open save document</p>]]></content></entry><entry><title>I am receiving the following error when using remote launch to launch a subprocess: "CONTEXT: parameter 'XXXXXX' is missing"</title><category term="Process design"/><id>http://community.workflowgen.com/kb/i-am-receiving-the-following-error-when-using-remote-launch.html</id><link rel="alternate" type="text/html" href="http://community.workflowgen.com/kb/i-am-receiving-the-following-error-when-using-remote-launch.html"/><author><name>WFG Team</name></author><published>2011-08-23T13:18:00Z</published><updated>2011-08-23T13:18:00Z</updated><content type="html" xml:lang="en-US"><![CDATA[<p>I am receiving the following error when using remote launch to launch&nbsp;a subprocess: "CONTEXT: parameter 'XXXXXX' is missing"</p>
<p><span style="text-decoration: underline;">Solution</span></p>
<p>One or more sub-process process data declared as IN parameter does not exist in the WorkflowGen Context object.</p>]]></content></entry></feed>
