Workflow activation on assets


#1

Hi, I installed the workflow GUI. I used the example of workflowmanagement.example.php and would like to use it for assets. After activating the feature, however, when I add an image in the resources, I do not see the workflow. Did I miss something?

Thanks in advance for any help. Here is the image of the workflow.


#2

What version are you on?


#3

My Pimcore version is 5.6.0


#4

How did you install the plugin? Its not compatible with Pimcore 5.6, try this one:


#5

Thanks a lot. I will try it.


#6

HI, I need to create workflow for assets.what i need to send notification when any asset is uploaded.I tried ur GUI but it didn’t save data to workflow state table neither send email.I have used following workflow.Please help with it…

pimcore:
workflows:
asset_lifecycle:
enabled: true
priority: 1
label: ‘Assets Lifecycle’
initial_place: todo
type: state_machine
audit_trail:
enabled: false
marking_store:
type: single_state
support_strategy:
type: expression
arguments:
- \Pimcore\Model\Asset\Image
- is_fully_authenticated()
places:
todo:
label: ToDo
title: ‘Content Creation has to be started’
color: ‘#3572b0
colorInverted: true
visibleInHeader: true
permissions:
-
modify: true
inProgress:
label: ‘In Progress’
title: ‘Content Creation in Progress’
color: ‘#ff9933
visibleInHeader: true
inReview:
label: ‘In Review’
title: ‘Review of Content’
color: ‘#ff9933
permissions:
-
objectLayout: 1
visibleInHeader: true
done:
label: Done
color: ‘#009900
permissions:
-
condition: ‘is_fully_authenticated() and ‘‘ROLE_PIMCORE_ADMIN’’ in roles’
modify: true
objectLayout: 2
-
objectLayout: 2
modify: false
visibleInHeader: true
reopened:
label: Reopened
color: ‘#ff9933
permissions:
-
objectLayout: 1
visibleInHeader: true
transitions:
start_progress:
from:
- todo
- reopened
to:
- inProgress
options:
label: ‘Start Progress’
changePublishedState: force_unpublished
name: start_progress
stop_progress:
from:
- inProgress
to:
- todo
options:
label: ‘Stop Progress’
changePublishedState: force_unpublished
name: stop_progress
mark_as_in_review:
from:
- inProgress
- todo
- reopened
to:
- inReview
options:
label: ‘Send to Review’
changePublishedState: force_unpublished
notificationSettings:
-
notifyUsers:
- admin
notifyRoles:
- projectmanagers
- admins
mailType: template
mailPath: ‘@PimcoreCore/Workflow/NotificationEmail/notificationEmail.html.twig’
notes:
commentEnabled: true
commentRequired: false
type: ‘Status update’
additionalFields: { }
name: mark_as_in_review
mark_as_done:
from:
- inReview
to:
- done
guard: ‘is_fully_authenticated() and ‘‘ROLE_PIMCORE_ADMIN’’ in roles’
options:
label: ‘Mark as Done’
changePublishedState: force_published
notes:
commentEnabled: true
commentRequired: false
type: ‘Status update’
additionalFields: { }
name: mark_as_done
reopen_issue:
from:
- done
- inReview
to:
- reopened
options:
label: ‘Reopen Issue’
changePublishedState: force_unpublished
notes:
commentEnabled: true
commentRequired: true
type: ‘Status update’
additionalFields: { }
name: reopen_issue
globalActions: { }