Lifecycle Applications |
Engineering Change Management |
The Status InterfaceChanging the Status of Objects and Exporting |
Use Case |
AbstractThis article shows how to use the ENOVICWState interface of the ENOVInterfaces framework to change the status of and Export an existing action Change Management object. |
This use case is intended to change the status of an existing Change Management object, i.e., an Engineering Change Order, Action, or Engineering Change Request. You would use this operation if, for example, a proposed ECO had been approved and its status had changed from Proposed to Pre-Release. You would then want to promote the status of the ECO. An ECO is used here for an example, but the process is the same for the other Actions and ECRs. You also see how to Export the ECO to specified file directory. The ENOVInterfaces framework contains the interface ENOVICWState which allows you to directly change the status of and Export the Change Management objects.
[Top]
CAAEviState is a use case of the CAAENOVInterfaces.edu framework that illustrates how you use the ENOVICWState interface to change the status of and Export an ECO, Action, or ECR.
[Top]
CAAEviState begins by opening a VPM session and creating a login a session. Then the ECO Manager is retrieved. To set up the demonstration, an ECO is created with the necessary parameters. For more information on how to create an ECO, refer to use case CAAEviEcoManager, and to ECAAEviActionManager for how to create Actions and ECRs. After the necessary objects are created, the ENOVICWState interface is used to change the status of the ECO and then Export.
The ENOVInterfaces interface/methods shown here are:
[Top]
To launch CAAEviState, you will need to set up the build time environment, then compile CAAEviState.cpp along with its prerequisites, set up the run time environment, and then execute the use case. The required interfaces can be found in the ENOVInterfaces, VPMInterfaces, VPMPersistency, and System frameworks. From the directory where the executable file is stored, enter "CAAEviState" to execute the program. [1].
[Top]
The CAAEviState use case is made of a single file located in the CAAEviState.m module of the CAAENOVInterfaces.edu framework:
Windows | InstallRootDirectory\CAAENOVInterfaces.edu\CAAEviState.m\ |
Unix | InstallRootDirectory/CAAENOVInterfaces.edu/CAAEviState.m/ |
where InstallRootDirectory
is the directory where the CAA CD-ROM
is installed.
[Top]
For demonstration purposes, the code from the CAAEviState use case is shown here. After the preliminary set up of creating the ECO, there are two logical steps:
[Top]
#include "ENOVICWState.h" #include "CATUnicodeString.h" |
These include statements give access to the interfaces demonstrated here.
//---Promote the ECO ENOVICWState_var spState(Eco); CATUnicodeString TransitionName("Promote"); CATUnicodeString Description("Promoting Eco"); boolean Simulate = FALSE; spState->ApplyNewStatus(TransitionName, Description, Simulate); if ( !SUCCEEDED(rc)) { cout << "Failed to Promote ECO." << endl; VPMSession::CloseSession(); return 4; } cout << "Changed Status of Engineering Change Order successfully." << endl; |
[Top]
#include "ENOVICWState.h" #include "CATUnicodeString.h" |
These include statements give access to the interfaces demonstrated here.
//---Export the ECO #if defined(_WINDOWS_SOURCE) CATUnicodeString outFilename("\tmp\MyEco.tmp"); #endif #if defined(_IRIX_SOURCE)||defined(_AIX_SOURCE)||defined(_HPUX_SOURCE) ||defined(_SUNOS_SOURCE) CATUnicodeString outFilename("/tmp/MyEco.tmp"); #endif rc = spState->ExportActionObjects(outFilename); if ( !SUCCEEDED(rc)) { cout << "ERROR in Export ECO." << endl; VPMSession::CloseSession(); return 5; } cout << "Exported Engineering Change Order successfully." << endl<< flush; |
[Top]
Use the ENOVICWState interface available in the ENOVInterfaces framework to change the status of ECO's, Actions, and ECR's and to export to a specified directory/file.
[Top]
[1] | Building and Launching a CAA V5 Use Case |
[Top] |
Version: 1 [Feb 2002] | Document created |
[Top] |
Copyright © 1994-2002, Dassault Systèmes. All rights reserved.