These are new or changed features of WindowsWorkflows in the version 2.0.
Changes and improvements in version 2.0
•GN4-1897: Better preview for PDF files. Modified the wf_importActivityData to call a different workflow for generating the preview of PDF files. The new workflow, that needs to be imported to existing GN4 system after upgrade, named wf_createPreviewPDF, defines a default preview of 1400px.
•GN4-1795: Added the external document's data (gn4:extDoc) to the workflows wf_GN4Report.xml and wf_GN4ReportEdition.xml, which creates and populates the tables of the statistics database. See Reports and InDesign documents.
•GN4-1770: In code workflows, added a new CheckOut sequential activity which retrieves the check-out info and, eventually, checks-out GN4 objects. See http://forum.teradp.com/topic.asp?TOPIC_ID=836&FORUM_ID=13#3819 for more info about this new activity.
•GN4-1760: In the Context object, added the GetActivityDataStream() method, which returns a copy of the binary stream contained into the IActivityData object. It is useful to send the file bytes to a third party web application. The opposite method (which creates an IActivityData object from a binary stream) already exists: CreateActivityData().
•GN4-1757: Added a new SrcPath property to the Zip code workflows activity, so to have the Info.SrcPath of the output ActivityData filled in. This is useful when passing the created .zip file to another workflow.
•GN4-1467: Added the 'SrcPaths' property to the Variation activity of Windows workflows: it is a list of custom paths to set into output binary data, just like the LoadData.SrcPaths property. It is useful when we need to store the binary variations into the file system.
Added a new 'Mode' property to the Variation activity. It can be one of these values:
- CreateAlways: always create and store the variation into GN4 database, overwriting the old variations.
- CreateNew: create and store the variation into GN4 database only if the original binary has changed
- CreateTemp: always create the variation without storing into GN4 database. The variation is returned as temporary file.
Note that the old 'CreateAlways' property (a boolean) has been left for backward compatibility.
See the wf_CodeTestVariation.xml workflow into the CodeWorkflowTest.zip daily archive for syntax examples of these new properties.
•GN4-972: The video preview format is no longer flash. For granting compatibility of video playback on mobile devices the default format is now mp4. The change is in the workflow wf_CreateVideoPreview. The width size of the preview has also been increased to 400px
Bug fixes in version 2.0
•GN4-1974: Scheduling the publishing of an article in a client with a different time zome than server, the UTC datetime written into the gn_TaskTable seemed incorrect (that is, into the past). This problem has never been replicated: maybe the user explicitly inserted a datetime into the past. However, a warning message has been added into the scheduling time control of the workflow panel when the inserted datetime is into the past. This way, the user can correct the selected datetime if needed (available since update 2 of the version 2.0 - build 2056).
•GN4-1685: In code workflows, the Fetch activity didn't read the credentials when downloading a single file (SingleWebFile=True) and the '(401) Unauthorized' error occurred.
•GN4-1437: A 'parsing CDATA' exception occurred in SaveXml activity of Windows workflows when generating CDATA section in xslt stylesheet using the following syntax:
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
. . .
<xsl:text disable-output-escaping="yes">]]></xsl:text>
Now the output xml containing the CDATA secions is correctly generated.
•GN4-1402: When the PitStop activity has to access to a UNC path, it tries to create a connection to the network folder using the configured web credentials. If the UNC path contained the filter of the file type (such as, for example, '\\myServer\myFolder\*.pdf') then the following error occurred: 'The parameter is incorrect' (ERR1011). Now the UNC path is correctly passed to the Windows API that create the authenticated network connection, and the error does not occur anymore.
•GN4-1830: publishing/exporting a rotated image the rotation gets lost. The current export/publishing workflows did not export the information about the image rotation, hence, if the image was rotate internally, it resulted not rotated onto the destination folder. Added to the wf_Extract.xml workflow an example about how to set the rotation value into the extracted images (see the TransformData activity into the new SetImageOrientation method).
•GN4-1942: Skip wrong CountryCodes when importing images. Some images contain a wrong Country Code value (xmp variable 'Iptc4xmpCore:CountryCode'), as defined in the ..\Config\Schemas\ISO3166-1.xsd standard schema. Added a new method to the Context object of the code workflows: 'ValidateWithSchema'. This method receives an xml document and validates it against the GN4 XSD schema. Using this new method, the code workflows are able to detect the wrong CountryCode values and ignore them, letting the system import the pictures. To see a syntax example of the ValidateWithSchema new method, see the AdjustCountryCode() method into the standard wf_ImportActivityData.xml workflow.
•GN4-1871: When printing a Fred4 page directly on the UNC path of a printer, all seemed to work fine (the page is correctly printed), but into the Back4 log there was the following error: "Cannot read parameters from input xml". Even if this was just a logging problem, it caused the failing of the printing workflow and the xml file was moved into the 'error' folder of the Back4 queue. The problem has been fixed. It was caused by the Save activity of the wf_PrintTemplate.xml workflow which tries to read the attributes of the output file to make it modifiable, but in this case (printing directly on the printer's path) there is no output physical file to read.