06-22-2012 05:46 AM
06-22-2012 11:40 AM
07-02-2012 02:18 AM
Yes - you can use the audit functionality to log the decision as all decisions are performed via the auditable service operation endTask on the workflow service. You would need to extract / generate some additional data for the audit entry though, as the basic set for that operation only contains the task id and transition. But based on the available data, you can build up a complete snapshot of the decision and save it as an audit entry.
<?xml version='1.0' encoding='UTF-8'?>
<Audit xmlns="http://www.alfresco.org/repo/audit/model/3.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.alfresco.org/repo/audit/model/3.2 alfresco-audit-3.2.xsd">
<DataExtractors>
<DataExtractor name="simpleValue"
class="org.alfresco.repo.audit.extractor.SimpleValueDataExtractor" />
</DataExtractors>
<DataGenerators>
<DataGenerator name="transactionId"
class="org.alfresco.repo.audit.generator.TransactionIdDataGenerator" />
</DataGenerators>
<PathMappings>
<PathMap source="/myApp" target="/myApp" />
<PathMap source="/repository" target="/myApp" />
<PathMap source="/alfresco-api" target="/myApp" />
</PathMappings>
<Application name="myApp" key="myApp">
<AuditPath key="pre">
<AuditPath key="WorkflowService">
<AuditPath key="endTask">
<AuditPath key="args">
<AuditPath key="taskId">
<RecordValue key="taskId" dataExtractor="simpleValue" />
</AuditPath>
<AuditPath key="transitionId">
<RecordValue key="transitionName" dataExtractor="simpleValue" />
</AuditPath>
</AuditPath>
</AuditPath>
</AuditPath>
</AuditPath>
</Application>
</Audit>
2012-07-02 17:20:47,927 DEBUG [repo.audit.inbound] [http-8080-5]
Inbound audit values:
/alfresco-api/pre/WorkflowService/endTask/args/taskId=activiti$start20422
/alfresco-api/pre/WorkflowService/endTask/args/transitionId=null
2012-07-02 17:20:47,952 DEBUG [repo.audit.inbound] [http-8080-5]
Inbound audit values:
/alfresco-api/post/WorkflowService/endTask/no-error=null
/alfresco-api/post/WorkflowService/endTask/args/taskId=activiti$start20422
/alfresco-api/post/WorkflowService/endTask/args/transitionId=null
07-02-2012 04:23 AM
07-03-2012 03:03 AM
Hello,
Looking at the source code of Alfresco 4.0.1 I recognize the stated behavior to be the consequence of a configuration bug in standard Alfresco. In the form-services-context.xml, the taskFormProcessor bean is injected with a reference to the WorkflowService implementation bean instead of the public service bean (as is done with the workflowFormProcessor, same file just a few lines above). This is why the start is being audit-logged, but further transitions aren't. Only public service beans are audit-enabled.
But please also log a support ticket with Alfresco (if you are a paying customer) or let me / us know, so at least a JIRA ticket can be opened.
07-04-2012 02:19 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.