Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos.core
Commits
d4690a67
Commit
d4690a67
authored
Aug 12, 2021
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
feature/ticket-workflow-improvements
See merge request
nexedi/slapos.core!327
parents
0267d789
e3999c18
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
182 additions
and
6 deletions
+182
-6
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/script_createResponseAndSuspend.py
...rkflow/ticket_workflow/script_createResponseAndSuspend.py
+16
-0
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/script_createResponseAndSuspend.xml
...kflow/ticket_workflow/script_createResponseAndSuspend.xml
+78
-0
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/state_suspended.xml
...eItem/portal_workflow/ticket_workflow/state_suspended.xml
+1
-1
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/state_validated.xml
...eItem/portal_workflow/ticket_workflow/state_validated.xml
+2
-1
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/transition_create_response_and_suspend_action.xml
...orkflow/transition_create_response_and_suspend_action.xml
+81
-0
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/transition_suspend_action.xml
...al_workflow/ticket_workflow/transition_suspend_action.xml
+2
-2
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/transition_validate_action.xml
...l_workflow/ticket_workflow/transition_validate_action.xml
+2
-2
No files found.
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/script_createResponseAndSuspend.py
0 → 100644
View file @
d4690a67
ticket
=
sci
[
'object'
]
kw
=
sci
[
'kwargs'
]
event
=
ticket
.
Ticket_getCausalityValue
()
event
.
Event_createResponse
(
response_event_portal_type
=
kw
[
'response_event_portal_type'
],
response_event_resource
=
kw
[
'response_event_resource'
],
response_event_title
=
kw
.
get
(
'response_event_title'
),
response_event_text_content
=
kw
.
get
(
'response_event_text_content'
),
response_event_start_date
=
kw
[
'response_event_start_date'
],
response_workflow_action
=
kw
[
'response_workflow_action'
],
response_event_notification_message
=
kw
[
'response_event_notification_message'
],
default_destination
=
kw
[
'default_destination'
],
response_event_content_type
=
kw
[
'response_event_content_type'
])
ticket
.
suspend
()
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/script_createResponseAndSuspend.xml
0 → 100644
View file @
d4690a67
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Script"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
sci
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
script_createResponseAndSuspend
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Script
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/state_suspended.xml
View file @
d4690a67
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Suspend
ed
</string>
</value>
<value>
<string>
User Assign
ed
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/state_validated.xml
View file @
d4690a67
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<value>
<value>
<tuple>
<tuple>
<string>
destination/portal_workflow/ticket_workflow/transition_create_response_and_invalidate_action
</string>
<string>
destination/portal_workflow/ticket_workflow/transition_create_response_and_invalidate_action
</string>
<string>
destination/portal_workflow/ticket_workflow/transition_create_response_and_suspend_action
</string>
<string>
destination/portal_workflow/ticket_workflow/transition_invalidate
</string>
<string>
destination/portal_workflow/ticket_workflow/transition_invalidate
</string>
<string>
destination/portal_workflow/ticket_workflow/transition_invalidate_action
</string>
<string>
destination/portal_workflow/ticket_workflow/transition_invalidate_action
</string>
<string>
destination/portal_workflow/ticket_workflow/transition_suspend
</string>
<string>
destination/portal_workflow/ticket_workflow/transition_suspend
</string>
...
@@ -50,7 +51,7 @@
...
@@ -50,7 +51,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Opened
</string>
</value>
<value>
<string>
Ope
rator Assig
ned
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</pickle>
</pickle>
...
...
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/transition_create_response_and_suspend_action.xml
0 → 100644
View file @
d4690a67
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Workflow Transition"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
%(content_url)s/Ticket_viewCreateResponseWorkflowActionDialog?workflow_action=create_response_and_suspend_action
</string>
</value>
</item>
<item>
<key>
<string>
action_name
</string>
</key>
<value>
<string>
Create Response and Assign to User
</string>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/workflow
</string>
<string>
before_script/portal_workflow/ticket_workflow/script_checkConsistency
</string>
<string>
after_script/portal_workflow/ticket_workflow/script_createResponseAndInvalidate
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Create an response and mark the ticket as suspended in the same time.
</string>
</value>
</item>
<item>
<key>
<string>
guard_expression
</string>
</key>
<value>
<string>
python: here.Ticket_getCausalityValue() is not None
</string>
</value>
</item>
<item>
<key>
<string>
guard_group
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
guard_permission
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
guard_role
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
transition_create_response_and_suspend_action
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Workflow Transition
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Create Response and Assign to User Action
</string>
</value>
</item>
<item>
<key>
<string>
trigger_type
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/transition_suspend_action.xml
View file @
d4690a67
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
action_name
</string>
</key>
<key>
<string>
action_name
</string>
</key>
<value>
<string>
Suspend Ticket
</string>
</value>
<value>
<string>
Assign to User
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
categories
</string>
</key>
<key>
<string>
categories
</string>
</key>
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Suspend Ticket
Action
</string>
</value>
<value>
<string>
Assign to User
Action
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
trigger_type
</string>
</key>
<key>
<string>
trigger_type
</string>
</key>
...
...
master/bt5/slapos_crm/WorkflowTemplateItem/portal_workflow/ticket_workflow/transition_validate_action.xml
View file @
d4690a67
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
action_name
</string>
</key>
<key>
<string>
action_name
</string>
</key>
<value>
<string>
Open Ticket
</string>
</value>
<value>
<string>
Assign to Operator
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
categories
</string>
</key>
<key>
<string>
categories
</string>
</key>
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Open Ticket
Action
</string>
</value>
<value>
<string>
Assign to Operator
Action
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
trigger_type
</string>
</key>
<key>
<string>
trigger_type
</string>
</key>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment