From d94fb4460b14b7897536ce9d7b146e285a53a2ce Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 11 Sep 2008 20:04:11 +0000 Subject: [PATCH] Update Workflow/Instance.pm POD and one info message --- lib/WebGUI/Workflow/Instance.pm | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/WebGUI/Workflow/Instance.pm b/lib/WebGUI/Workflow/Instance.pm index 13f6ba628..5df9f6b91 100644 --- a/lib/WebGUI/Workflow/Instance.pm +++ b/lib/WebGUI/Workflow/Instance.pm @@ -68,7 +68,7 @@ sub create { : undef; my ($count) = $session->db->quickArray("select count(*) from WorkflowInstance where workflowId=? and parameters=?",[$properties->{workflowId},$params]); if ($isSingleton && $count) { - $session->log->info("singleton workflow $properties->{workflowId} already running, not running again"); + $session->log->info("An instance of singleton workflow $properties->{workflowId} already exists, not creating a new one"); return undef } @@ -264,6 +264,10 @@ A reference to the current session. A unique id refering to a workflow instance. +=head3 isNew + +A boolean, that, if true, sets that the instance is ready to run. + =cut sub new { @@ -406,15 +410,17 @@ The id of the workflow we're executing. =head4 className -The classname of an object that will be created to pass into the workflow. +The classname of an object that will be created to pass into the workflow. The object will not +be constructed unless both className and methodName are true. =head4 methodName -The method name of the constructor for className. +The method name of the constructor for className. The object will not +be constructed unless both className and methodName are true. =head4 parameters -The parameters to be passed into the constructor. Note that the system will always pass in the session as the first argument. +A hashref of parameters to be passed into the constructor for className. Note that the system will always pass in the session as the first argument. =head4 currentActivityId