Select Fastening business logic resources in the right
panel.
Add a new resource table by right-clicking it.
Select Unified Bead Instance Title.
Right-click and select Choose the assigned resource.
In the Select a Business Rule dialog box, create a new rule.
Add the following script in the BL script editor.
/* ------------------------------------------------------------------------------------------------- */
/* Business Logic : */
/* Set the unified bead instance title */
/* ------------------------------------------------------------------------------------------------- */
/* INPUTS to Business Logic */
/* ------------------------------------------------------------------------------------------------- */
/* "iUnifiedBeadInstance" : BeadInstance */
/* The instance of the unified bead currently being updated */
/* ------------------------------------------------------------------------------------------------- */
/* "iCurveName" : String */
/* The instance of the unified bead currently being updated */
/* ------------------------------------------------------------------------------------------------- */
/* OUTPUTS from Business Logic */
/* ------------------------------------------------------------------------------------------------- */
/* "oUnifiedBeadInstanceTitle" : String */
/* The unified bead instance title set on the bead instance */
/* ------------------------------------------------------------------------------------------------- */
/* OUTPUTS from Business Logic */
let osUnifiedBeadInstanceTitle(string)
/* INPUTS to Business Logic */
let iUnifiedBeadInstance(BeadInstance)
Let iCurveName(string)
/* Others variables used in the Business Logic */
let defaultUnifiedBeadInstanceTitle(string)
osUnifiedBeadInstanceTitle = "BL"
iCurveName = Parameters->GetAttributeString("iCurveName")
if(iCurveName <> "")
{
osUnifiedBeadInstanceTitle = osUnifiedBeadInstanceTitle + "_" + iCurveName
}
Parameters.SetAttributeString("oUnifiedBeadInstanceTitle", osUnifiedBeadInstanceTitle)
Optional:
Modify the script to meet your requirements.
Return to the Data Setup app tab.
Save the information in the database.
Drag and drop the new resource to your collaborative space.