Skip to main content
12-Amethyst
August 19, 2010
Question

Adding multiple default change tasks to a change notice implementation plan

  • August 19, 2010
  • 1 reply
  • 673 views
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

avillanueva
23-Emerald I
August 20, 2010
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();

...