Innovator inn = this.getInnovator();
// Get the Life Cycle State
string lcsID = this.getProperty("current_state");
Item LCS = inn.newItem("Life Cycle State", "get");
LCS.setID(lcsID);
LCS = LCS.apply();
// Check if this state is flagged as 'released'
string isReleasedState = LCS.getProperty("set_is_released");
if (isReleasedState == "1")
{
// Logic to run if state is released
}
// Default logic
I tested this sample by running it through an action, but it should also work being called through a server event.
Chris
______________________________
Christopher Gillis
Aras Labs Software EngineerInnovator inn = this.getInnovator();
// Get the Life Cycle State
string lcsID = this.getProperty("current_state");
Item LCS = inn.newItem("Life Cycle State", "get");
LCS.setID(lcsID);
LCS = LCS.apply();
// Check if this state is flagged as 'released'
string isReleasedState = LCS.getProperty("set_is_released");
if (isReleasedState == "1")
{
// Logic to run if state is released
}
// Default logic
I tested this sample by running it through an action, but it should also work being called through a server event.
Chris
______________________________
Christopher Gillis
Aras Labs Software EngineerCopyright © 2025 Aras. All rights reserved.