Sunday, March 31, 2019

Basics of Project Creation- StreamServe 5.6.1 & 5.6.2

All technologies start from ‘Hello World!’; our journey will start from creating a project using xmlIn & creating simple PDF. The below steps are for StreamServe version 5.6.2 & 5.6.1.
Create a new project in StreamServe
1. In Design Center, select “Create new project”
2. In Project Settings dialog box,specify the following:
a) Project name- Demo_xmltopdf_billgeneration
b) Default code page:(None)
c) Default Resource set: Demo_xmltopdf_billgenerationRset
d) Project folder: Anywhere on your harddisk.
e) Click OK
3. Right-Click the project and select New–> Folder to create a folder named Resources.
4. Drag and Drop the Rset into Resources folder
5. Add folders to the the resource-set
a) In the project browser,click the project. The Resource-set view opens.
b) In the resource-set view,right click an empty space and select New–> Folder
c) Rename the folder to Samplefiles.
d) Similarly create two more folders named, Images and overlay
6. Add the resources to the Resource-set
a) In the resource-set view,right click on the samplefiles folder and select Import.The select file to import dialog box opens.Browse to the sample file and click OK.
b) Add the images and the overlays as resources to the respective folders.
7. Platform Configuration:
The platform is where you configure the environment settings for the project.
a) Add a new folder to the project and name it Platform
b) Right click on folder and select New-> Platform. A new generic layer for a platform
is added.
c) Expand the platform generic layer to view the New Physical Layer Object.
d) Rename the platform and the New PhysicalLayer Object.
7.1 Create a new Input connector
7.1.1 In platform view, right click and select New Input Connector.
7.1.2 Rename the new input connector.
7.1.3 Right click the Input connector and select Settings. The Input connector settings dialog box opens.
7.1.4 From the selected layer drop-down list, select Physical(DEV)
7.1.5 Specify the following:
a. Connector type: Directory
b. Folder: C:\Demo_xmltopdf\DEV\IN
c. File name pattern: *.xml
d. Click OK.
7.2 Add output connector to platform
7.2.1 In platform view,right click and select New Output Connector → Generic
7.2.2 Rename the output connector.
7.2.3 Right-click OutputFolder and select Settings.
7.2.4 Make sure the generic platform layer is selected.
7.2.5 From the device drop-down list select PDF
7.2.6 From the selected layer drop-down list,select DEV(physical)
7.2.7 In the dialog box that opens,click yes.
7.2.8 From the connector type drop-down list select File.
7.2.9 Specify the following:
a. Connector type: File
b. File:
c. Append:
d. Create Directories: Yes
e. Click OK
8. Configuring a message
The main function of a Message is to transform input documents into output documents.
8.1 Create a new message
a) Create a new folder in the project directory and name the folder Message.
b) Right Click the message folder and select New–> Message
c) Rename the message
8.2 Add the event
a) In the message view, right click and select Add Event → XMLIN.
b) Rename the new Event
8.3 Add the process:
a) In the message view,right click and select Add process → storyteller
b) Rename the new process.
9. Configure Event :
9.1 Open a Sample File
a) In Message view, right-click LetterEvent and select Open. The XMLIN
window Opens.
b) From the File Menu,select Open Sample. The select resource dialog box opens.
c) Browse to the Rset > SampleFiles
d) Browse to the Letter directory and select the sample xml.
9.2 Define a Pattern
a) In the XMLIN tool bar, select the Pattern Tool.
b) In the sample view click on the unique identifier of the document, here

A new pattern object names Patten_DocumentType is added to the Message view.
c) In the properties panel, make sure the following Match Value is as follows:
/DOC/document[@title=’BILL’]
9.3 Define a message tree structure
a) In the XMLIN tool bar, click the Extract Message toolbar button
Fields are automatically created and displayed in both the Message view and in the
sample view.
b) Click Field tool
c) In the XMLIN view, click the XML attributes.The attribute fields appears in the Message panel.
d) Save and exit XMLIN.
10. Configure the process
10.1 Open the new process.
10.1.1 In the message view, right-click LetterProcess and select Open.
10.1.2 A blank page opens where you can design accordingly or use overlays for the design part. You
can add texts, images, tables etc and also drag the fields mapped from input xml onto the pdf.
11. Create new Runtime
11.1 Create a new folder in the project browser and rename it Runtime.
11.2 Right click Runtime and select New–> Runtime. The select platform dialog box opens ,displaying a
list of available platforms, in this demo only one.
11.3 Select Platform and click OK.
11.4 The Add Resource Sets dialog box opens. Click Yes.
11.5 Add message to Runtime.
a) Rename the default Runtime job.
b) Right-click Job and select Add Message. The Select Message dialog box opens, displaying a list
of available Message, in this example one.
c) Select and click OK.
d) The letter message is added to the Job runtime job.
11.6 Connect Message to Platform
a) Connect the InputDirectory input connector to the LetterEvent by dragging and droping.
b) Connect the LetterProcess to the OutputFile connector in a similar way.
The Project configuration is done. Now you have to export the project & deploy the export on the control centre. Please make sure to correctly select the pattern from your xml file & not copy from the example!!
Incase you point any mistake,i’ll be happy to hear!! Drop a HI!! Happy Stream-Serving!! 🙂

No comments:

Post a Comment

Configuring MailOut in StreamServe 5.6.2 & 5.6.1

Streamserve is a knowledge management software package, dedicated to providing users with several different document management options (...