diff --git a/lib/WebGUI/Help/Workflow_Activity.pm b/lib/WebGUI/Help/Workflow_Activity.pm index 77c7e0b19..5bbfc73e4 100644 --- a/lib/WebGUI/Help/Workflow_Activity.pm +++ b/lib/WebGUI/Help/Workflow_Activity.pm @@ -24,6 +24,53 @@ our $HELP = { ], }, + 'list of installed activities' => { + title => 'list of installed activities', + body => sub { + my $session = shift; + my $dir = join '/', $session->config->getWebguiRoot,"lib","WebGUI","Workflow","Activity"; + opendir (DIR,$dir) or $session->errorHandler->fatal("Can't open Activity directory: $dir!"); + my @installedActivities = sort map { s/\.pm//; $_; } + grep { /\.pm$/ } + readdir(DIR); ##list of namespaces + closedir(DIR); + + ##Build list of enabled activities, by namespace, by reversing session hash: + my %workflows = %{ $session->config->get("workflowActivities") }; + my %activities = map { s/^WebGUI::Workflow::Activity:://; $_ => 1 } + map { @{ $workflows{$_} } } + keys %workflows; + + my $i18n = WebGUI::International->new($session, 'Workflow_Activity'); + my $yes = $i18n->get(138, 'WebGUI'); + my $no = $i18n->get(139, 'WebGUI'); + my $activity_table = + join "\n", + map { join '', '
| ',$i18n->get('activity name'), + ' | ', + $i18n->get('activity enabled header'), + ' |
|---|
The set of available Macros is defined in the WebGUI configuration file. The table below shows all macros that are available for use on your site, and which ones have - been enabled on your use. If the macro is enabled, the table will list the shortcut that is used to call it.
+ message => q|Making a macro available for use on your site is a two step process.
+The table below shows which macros are installed on your site and which have been configured in your WebGUI.conf file.
+ |, context => 'Content for dynamically generated macro list', lastUpdated => 1150994876, diff --git a/lib/WebGUI/i18n/English/Workflow_Activity.pm b/lib/WebGUI/i18n/English/Workflow_Activity.pm index e549f6172..ed999b2a2 100644 --- a/lib/WebGUI/i18n/English/Workflow_Activity.pm +++ b/lib/WebGUI/i18n/English/Workflow_Activity.pm @@ -37,8 +37,38 @@ our $I18N = { lastUpdated => 0, }, + 'list of installed activities' => { + message => q|List of Installed Workflow Activities|, + lastUpdated => 0, + }, + + 'activities list body' => { + message => q|Making a Workflow Activity available for use on your site is a two step process.
+The table below shows which activities are installed on your site and which have been configured in your WebGUI.conf file. It does not say if the activity is used in a Workflow.
+|, + lastUpdated => 0, + }, + + 'activity enabled header' => { + message => q|Activity Enabled?|, + lastUpdated => 1112591289, + context => q|Table heading in List of Activities help page. Short for "Is this Activity enabled?"|, + }, + + 'activity name' => { + message => q|Activity Name|, + lastUpdated => 1112591289, + context => q|Table heading in List of Activities help page. Short for "Is this Activity enabled?"|, + }, + 'topicName' => { - message => q|Base Workflow Activity|, + message => q|Workflow Activities|, context => q|The name of this workflow activity.|, lastUpdated => 0, },