Automated web content publication
The Web content management feature allows your workflow to interact with the content of
the documents in the Web Site folder. Workflows can insert content into a web page or extract
from a page. This feature is important when you want some of your web site content to be
controlled by business processes (ex. Press release, policies and other legal documents, etc...)
Workflows interact with resources via tags using the XML format. There are no predefined tags and
the designer of the workflow decides what these tags are.
Inserting content into a resource
There are two steps that need to be taken in order to insert content into a resource.
- Create and prepare the resource to insert into
- Configure the workflow that is going to insert into the resource
First, you must create the resource into the Web Site folder. Like a blank Web Page for instance.
Then place a tag in your document, where you want the content to be inserted. The tag will be replaced
by the content from the workflow. There are two kinds of tags: with content and without.
|
Tags without content:
If a tag name is mytag then the format of a tag without content it <mytag/>. A tag
without content is simply replaced by the value inserted by the workflow. Note that typically, the workflow
should re-add the tag either before or after the inserted content, thus allowing more content to be
added the next time the workflow runs. This is useful when prepending or appending content to a page.
Web page example:
<h2>Page example</h2>
<mytag/>
|
| |
|
Tags with content:
If a tag name is mytag then the format of a tag with content it <mytag>...</mytag>.
A tag with content is replaced, with all its content by the content from the workflow. Note that a
typical way of using this is by making the workflow add the new
content and re-add the surrounding tag, so that the new content can be replaced later. This is useful
when replace content in a page.
Web page example:
<h2>Page example</h2>
<mytag>
This is the content that currently shows in the page.
It will be replaced by the content inserted by the workflow.
</mytag>
|
| |
|
Configure the workflow:
Add a Web content modification step to your workflow (in the Documents sub-menu).

If you check the Add an HTML <br> tag at the end of each line. check box, then
the Business Pilot engine will automatically add line breaks
at the end of each line. If not check, it does not alter the content you type.
|
Extracting content from a resource
This is the inverse operation, it consists in reading content from an existing page without altering it and
injecting it into the workflow for it to be processed.
To make this work, create a web page and put in a tag with content (see definition above in this document). Then
add a Web content grabber item to your workflow. When the workflow executes this item, the resulting live
data will contain the content of the tag from your page.
