Completing activities that are not being used
Activities are moved to the Completed view for two reasons, inactivity and the passing of a Due Date. The following help is about how to configure an inactive Activity.
Before you begin
To edit configuration files, you must use the wsadmin client. See Starting the wsadmin client for details.
About this task
To remove an activity that is not being used, complete the following steps:
Procedure
- Use the wsadmin client to access and check out the Activities
configuration files.
- Display the current configuration settings using the following
command:
From the returned list, look at the current values of the settings that begin with jobs.AutoComplete and determine which property values you want to change:ActivitiesConfigService.showConfig()
- jobs.AutoComplete.autoCompletionPeriod
- Defines the number of days of inactivity that must pass before an activity is automatically marked complete. Specify the value in days. The default value is 90.
- jobs.AutoComplete.prenotification
- Defines whether or not to send an email to the activity owners to warn them that the activity will be marked complete if no modifications are made to it. This property accepts the following values: true or false. The default value is true. This setting requires that email notifications are enabled.
- To change the property values, use the following command:
ActivitiesConfigService.updateConfig(property, value)
For example:ActivitiesConfigService.updateConfig("jobs.AutoComplete.autoCompletionPeriod","100") ActivitiesConfigService.updateConfig("jobs.AutoComplete.prenotification","false")
- Optional: If you decide to notify activity
owners, you can change the number of days warning they are given by
changing the interval at which the job runs. If the job is scheduled
to run once a month, the owners get a month's notice that their activity
will be marked complete. If it runs weekly, they get a week's notice.
To change the interval of the job, edit the value of the jobs.AutoComplete.interval property. The default value is
0 0 23 ? * SAT
, which specifies that the job should run weekly at 11 PM on Saturday. For information about how to format this value, see Scheduling tasks.Use the following command to edit this property:
where value is a time interval. For example:ActivitiesConfigService.updateConfig("jobs.AutoComplete.interval", value)
"0 30 4 ? * SAT"
- Optional: If you want to prevent the auto completion
job from running altogether, you can use the following command to
disable the job:
ActivitiesConfigService.updateConfig("jobs.AutoComplete.enabled", "false")
- After making changes, you must check the configuration files back in and you must do so during the same wsadmin session in which you checked them out for the changes to take effect. See Applying property changes for details.
Example
<scheduledTasks>
<!-- cluster scoped jobs -->
<!-- ActivityAutoCompleteJob - weekly on Sat at 11pm -->
<task
name="ActivityAutoCompleteJob"
description="Automatically mark unmodified activities as completed"
interval="0 0 23 ? * SAT"
startby=""
enabled="false"
scope="cluster"
type="class"
targetName="com.ibm.openactivities.jobs.AutoCompleteJobWS"
mbeanMethodName=""
serverName="unsupported" >
<args>
<property name="autoCompletionPeriod">100</property>
<property name="prenotification">false</property>
</args>
</task>
...
</scheduledTasks>