Ask the Expert

Can I code a Notes script to bundle LEI-polling sequence activity?

In a LEI-polling-activity I can check the option "execute synchronously." But this only counts for the next activity in the sequence. Now I have the following constellation:

Poll -> starts activity 1
activity 1 starts activity 2
activity 2 starts activity 3

But activity 1 must not be started again before activity 3 is finished. I cannot prohibit that by checking the above mentioned flag, because after activity 1 has finished, the poll happily fires again, when the appropriate conditions are met.

So I wondered if there is a way to code a Notes script that bundles activity 1-3 in sequence, so I can place this scripted activity as the one to be triggered by the poll.

Could you please point me to a sample code on how to achieve this?

The "constellation" you have described simply goes beyond LEI's out-of-the-box capabilities. You might consider using a Scripted Activity that operates as the polling governor. That means you have to write a LotusScript agent that looks in the LEI Admin database for these activities and tests for their status, etc. The LEI Admin is just another Notes database, so take a look at how the "Start Activity" button works and the "Active" view.

Do you have comments on this Ask the Expert question and response? Let us know.

This was first published in September 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: