2

XPiNC (Per can you add that tag) で、ノーツ クライアントで「スケジュールされたローカル エージェント」が有効になっているかどうかを確認する方法はありますか? あるいは、LotusScript エージェントでそれを行う方法。エージェントがアクティブかどうかを確認するのは簡単ですが、それは方程式の一部にすぎません

4

1 に答える 1

3

See the Trigger and IsEnabled properties of the NotesAgent class:

TRIGGER_AFTER_MAIL_DELIVERY (2) means "After new mail has arrived"
TRIGGER_BEFORE_MAIL_DELIVERY (6) means "Before new mail arrives"
TRIGGER_DOC_PASTED (3) means "When documents are pasted"
TRIGGER_DOC_UPDATE (5) means "After documents are created or modified"
TRIGGER_MANUAL (4) means "Action menu selection" or "Agent list selection"
TRIGGER_SERVERSTART (8) means "When the Domino server starts"
TRIGGER_NONE (0) is not used

TRIGGER_SCHEDULED (1) means "More than once a day," "Daily," "Weekly," "Monthly," or "Never"

Edit: This forum post suggests checking wether the Notes client is configured to allow running of scheduled agent can be done like this:

if (Clng( Session.GetEnvironmentValue( "Preferences", True )) and &H8000000) > 0 then
    msgbox "scheduled agents allowed"
end if
于 2012-04-14T06:13:23.600 に答える