Path

exponential.earth / exponential / documentation / building an exponential site / the guestbook / connecting the workflow to a trigger function


Connecting the workflow to a trigger function

These documentation pages are no longer maintained. Please visit the new documentation site.

What we have done so far is that we have created a new workflow called "Guestbook entry approval". This workflow alone doesn't do anything. It has to be assigned/connected to a trigger function. Without a trigger function, the workflow definition will simply sit there and do nothing. Go ahead and carry out the following steps:

  1. Make sure that you're logged into the administration interface.
  2. Click on the "Setup" tab.
  3. Click on "Triggers" (from within the menu on the left hand side).
    A list of triggers will appear.
  4. Locate the line that says "Content - Publish - Before" and set the corresponding dropdown box to "Guestbook entry approval".
  5. Press the "Apply changes" button.

Now, surf the TSCM site again and attempt to submit/add a new guestbook entry. You'll quickly discover that the entry will not be visible on the guestbook page. So, where did it go? At this point the object that contains the entry is in an unpublished state. It is waiting for an approval by the administrator user.

Comments

Contents

Building an Exponential site

Prerequisits
Situation
Creating the TSCM site
Testing the interfaces
Setting up the main layout
Creating sections
The welcome page
The news page
The members page
The guestbook
    Creating the content class
    Adding content
    Creating the template
    Adding an action button
    Making the button work
    The input template
    Testing the guestbook
    Implementing an approval mechanism
    Modifying the entry page
    Creating a workflow
    Connecting the workflow to a trigger...
    Approving entries
    The "runcronjob" script
The links page


Created

20/11/2003
11:43:11 am
by Balazs Halasy

Last updated

23/11/2004
1:21:50 pm
by Raymond Bosman

Authors

Balazs Halasy
Raymond Bosman



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.