Users:

Roles:
Create/Check SOAP user for these roles
x_bate_transport_e_transport_expresso_user – Allowed to add, change, and delete field and status mappings with regards to ActiveControl.

x_bate_transport_e_transport_expresso_admin – Allowed to change the properties with regards to ActiveControl. Also allowed to reprocess business tasks that failed to be created without limit.
Allocate all ‘soap’ roles.

Business Rules:
Name: (TE) Create TE Task on Change on Update
Table: Change Request
When : Before – Update
Condition:
Configuration item.name starts with SAP
AND
TE Status is –None—or TE Status is ERROR: Failed to Create Business Task
AND
Approval is Approved

Script:
function onBefore(current, previous) { new TransportExpresso().createTransportExpressoBusinessTask(current); }

Name: (TE) Create TE Task on Incident Update
Table: Incident
When : Before – Update
Condition:
Configuration item.name starts with SAP
AND
TE Status is –None—or TE Status is ERROR: Failed to Create Business Task
AND
Incident State is Active

Script:
function onBefore(current, previous) { new TransportExpresso().createTransportExpressoBusinessTask(current); }

Name: (TE) Set Task State on TE Status Change
Table: Task
When : Before – Insert, and Update
Condition:
TE Status changes
AND
TE Status is not –None—

Script:
function onBefore(current, previous) { var new_state = new TransportExpresso().setSNState(current); current.state = (!new_state) ? current.state : new_state;}

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment