'm trying to customize sample workflow. I would like to override Sitecore.Workflows.Simple.AutoSubmitAction with my bussiness logic but I am not getting the steps from where I can customize. Basically I want workflow from which any item change I want to change last modified date of its parent. I know we can achieve this by event onsave but I want using workflow.
1
votes
1 Answers
1
votes
There is no point in overriding AutoSubmitAction
.
Just create your custom action class and implement WorkflowPipelineArgs
method:
public class CustomAutoAction
{
public void Process(WorkflowPipelineArgs args)
{
Item dataItem = args.DataItem;
if (dataItem != null && dataItem.Parent != null) {
dataItem.Parent ...
}
Then add it under /sitecore/system/Workflows/Sample Workflow/Draft/__OnSave
: