cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding multiple default change tasks to a change notice implementation plan

jfrankovich
7-Bedrock

Adding multiple default change tasks to a change notice implementation plan

Does anyone know if it is possible to add multiple default change tasks to a change notice implementation plan?

Our change notices almost always require a certain set of tasks to be performed. OOTB the change notice implementation plan gets a single default task. We would like to have the default populate the plan with several tasks that could then be modified, deleted, or supplemented with additional tasks as the CN is constructed.

The idea is that certain tasks would be "recommended" and would appear to be standardized in the plan.

John Frankovich


1 REPLY 1

Yes, it is possible. You could handle it from the ECR workflow or at
the beginning of the ECN workflow but the idea is the same. You can
execute some Java code in an expression robot to auto-create change
tasks however you want.



WTChangeActivity2 task
=WTChangeActivity2.newWTChangeActivity2("Task 1");

task.setContainer(ecr.getContainer());

//you can insert logic based on the ECR classification

if (ecr.getCategory().getDisplay().equals("Initial Engineering
Release"))

task.setDescription("Initial Release");

else

task.setDescription("Default Task - Change this to your
description of change");

// Save the Change Order (ECN)

// Create a transaction to persist to the database

Transaction transaction = null;

ChangeOrderIfc changeorderifc=null;

try

{

transaction = new Transaction();

transaction.start();

ChangeHelper2.service.saveChangeActivity(changeorderifc, task);

transaction.commit();

...
Announcements
Learn more about how we are using our browser poll here