0% found this document useful (0 votes)
241 views35 pages

Project Based Conditions On LOVs PDF

Uploaded by

ch_deepak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
241 views35 pages

Project Based Conditions On LOVs PDF

Uploaded by

ch_deepak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 35

Project Based Conditions on LOVs

Brahma Somanchi
Software Development Manager
Siemens PLM Software

http://plmworld.org/ 1
Platform Extensibility Services

© Siemens AG 2011. All Rights Reserved.


Page 2 May-11 Siemens PLM Software
Platform Extensibility Services
Project Based Conditions on LOVs

Agenda
 Overview of existing functionality
 Limitations
 Project based conditions on
LOVs
 Other changes

© Siemens AG 2011. All Rights Reserved.


Page 3 May-11 Siemens PLM Software
Overview of existing functionality

Conditions in Business Modeler IDE

 Conditions capability is available in Teamcenter 2008


 A condition defines an expression
 An expression always evaluates to true or false
 Here are some examples of expressions that could be true or false
 Material is copper
 Weight is greater than 100
 User’s role is Designer
 User’s project is F16

© Siemens AG 2011. All Rights Reserved.


Page 4 May-11 Siemens PLM Software
Overview of existing functionality

Conditions in Business Modeler IDE

 Syntax for condition looks like this

isAxel ( Item o)  o.object_name = “Axel”

Condition Name Input Variable Name Expression

© Siemens AG 2011. All Rights Reserved.


Page 5 May-11 Siemens PLM Software
Overview of existing functionality

Conditions usage

 Conditions are used to provide flexibility in business behavior


 You can use conditions to configure
 Naming Rules
 Revision Naming Rules
 Deep copy rules
 List Of Values
 LOV attachments
 LOV Values
 Sub LOVs
 Object Display Rules

© Siemens AG 2011. All Rights Reserved.


Page 6 May-11 Siemens PLM Software
Overview of existing functionality

Conditions usage in LOV attachments


 You can attach multiple LOVs using conditions

 Engineering sees…
A
B
C

 Manufacturing sees..
X
Y
Z

© Siemens AG 2011. All Rights Reserved.


Page 7 May-11 Siemens PLM Software
Overview of existing functionality

Valid conditions for LOV attachments


 Valid signatures for attaching multiple LOVs are
 (UserSession o)
 isTrue
 isFalse

© Siemens AG 2011. All Rights Reserved.


Page 8 May-11 Siemens PLM Software
Platform Extensibility Services
Project Based Conditions on LOVs

Agenda
 Overview of existing functionality
 Limitations
 Project based conditions on
LOVs
 Other changes

© Siemens AG 2011. All Rights Reserved.


Page 9 May-11 Siemens PLM Software
Limitations of existing functionality

Conditions usage for LOVs is limited to UserSession properties


 If the condition signature contains any Business Object other than
UserSession, you cannot use such condition for attaching an LOV to a
property
 The LOV shown to the user will be driven by the properties of
UserSession (i.e., login state of the user)
 This may cause data inconsistency issues in some cases

© Siemens AG 2011. All Rights Reserved.


Page 10 May-11 Siemens PLM Software
Limitations of existing functionality

Data inconsistency issue


Example
 You have two conditions
 Is User Session is Project A
 Is User Session is Project B

© Siemens AG 2011. All Rights Reserved.


Page 11 May-11 Siemens PLM Software
Limitations of existing functionality

Data inconsistency issue


 Two LOVs
 Light Colors
 Bright Colors

© Siemens AG 2011. All Rights Reserved.


Page 12 May-11 Siemens PLM Software
Limitations of existing functionality

Data inconsistency issue


 Attach the LOVs to “Color” property on “My Part” using the
conditions
 Deploy data model

© Siemens AG 2011. All Rights Reserved.


Page 13 May-11 Siemens PLM Software
Limitations of existing functionality

Data inconsistency issue


User 1:
 User login as a member in
Project A
 Creates an instance of MyPart
 Since user login as a member in
Project A, the condition “Is User
Session Project A” will be
satisfied
 For “Color” property, he sees
values from “Bright Colors”
 User assigns the object to
Project A

© Siemens AG 2011. All Rights Reserved.


Page 14 May-11 Siemens PLM Software
Limitations of existing functionality

Data inconsistency issue


User 2:
 User login as a member in Project B
 Gets the object created by User 1
 Since user login as a member in Project B, the condition “Is User
Session Project B” will be satisfied
 For “Color” property, he sees
values from “Light Colors”
 Is this a problem ?

© Siemens AG 2011. All Rights Reserved.


Page 15 May-11 Siemens PLM Software
Limitations of existing functionality

Data inconsistency issue


 Since the object is assigned to “Project A” if the expectation is ensure
that the “Color” property always gets “Bright Colors”, then it is a
problem
 The existing behavior can lead to data inconsistencies
 As a work around, the user has to ensure that he/she is editing the
object in the right project context

The new functionality “Project Based Conditions on LOVs” in


Teamcenter 9 eliminates this limitation

© Siemens AG 2011. All Rights Reserved.


Page 16 May-11 Siemens PLM Software
Platform Extensibility Services
Project Based Conditions on LOVs

Agenda
 Overview of existing functionality
 Limitations of existing
functionality
 Project based conditions on
LOVs
 Other Changes

© Siemens AG 2011. All Rights Reserved.


Page 17 May-11 Siemens PLM Software
Project Based Conditions on LOV

Eliminates the limitations

 Once the object is created and assigned to a project, the LOV will
remain same
 You don’t need to switch the login credentials to ensure data integrity

Project Based Conditions can used only for attaching LOVs only; they
are not supported for any other Business Rules

© Siemens AG 2011. All Rights Reserved.


Page 18 May-11 Siemens PLM Software
Project Based Conditions on LOV

How to build project based conditions ?

 Valid signatures
 (WorkspaceObject o, UserSession u) New in Tc9
 (UserSession u)
 isTrue() Existing in Teamcenter 2008
 isFalse()

© Siemens AG 2011. All Rights Reserved.


Page 19 May-11 Siemens PLM Software
Project Based Conditions on LOV

How to build project based conditions ?

 Valid properties to be used in condition expression


 project_list (Workspace Object )
 owning_project (Workspace Object)
 owning_group (POM_application_object)
 owning_user (POM_application_object)
 Properties of UserSession
 group
 group_name
 project
 project_name
 role
 role_name

© Siemens AG 2011. All Rights Reserved.


Page 20 May-11 Siemens PLM Software
Project Based Conditions on LOV

How to build project based conditions ?

 Valid operations
 UserSession
 fnd0isInProjListORSessionProject()
 fnd0isOwningORSessionProject()
 WorkspaceObject
 fnd0isOwningGroup()
 fnd0isOwningUser()

© Siemens AG 2011. All Rights Reserved.


Page 21 May-11 Siemens PLM Software
Project Based Conditions on LOV

Example
Signature: (WorkspaceObject o,
UserSession u)
If object is not yet created AND if
the user login as a member in ( o=null AND u.project_name =
“Project A” “Project A” )

OR OR

If the object exists AND if the object (o !=null) AND


is assigned to “Project A” (Function::INLIST(“Project A”,
o.project_list, “project_name”)

© Siemens AG 2011. All Rights Reserved.


Page 22 May-11 Siemens PLM Software
Project Based Conditions on LOV

Example

It is very complex
expression to build. Is
there an easy way

© Siemens AG 2011. All Rights Reserved.


Page 23 May-11 Siemens PLM Software
Project Based Conditions on LOV

How to build project based conditions ?

 Use the helper operation

© Siemens AG 2011. All Rights Reserved.


Page 24 May-11 Siemens PLM Software
Project Based Conditions on LOV

Using Project Based Conditions on LOVs

Example

Attach two LOVs to


pbc4color property

© Siemens AG 2011. All Rights Reserved.


Page 25 May-11 Siemens PLM Software
Project Based Conditions on LOVs

Using Project Based Conditions on LOV


User 1:
 User login as a member in Project A
 Creates an instance of MyPart
 Since user login as a member in
Project A, (o=null AND
u.project_name = “Project A” ) part
of the “Pbc4IsProjectA” condition will
be satisfied
 For “Color” property, he sees values
from “Bright Colors” while creating
the instance
 User assigns the object to Project A

© Siemens AG 2011. All Rights Reserved.


Page 26 May-11 Siemens PLM Software
Project Based Conditions on LOVs

Using Project Based Conditions on LOVs


User 2:
 User login as a member in Project B
 Gets the object created by User 1 and edit it
 Since the object is assigned to “Project A” the expression (o !=null)
AND (Function::INLIST(“Project A”, o.project_list, “project_name”)
in “Pbc4IsProjectA” will be satisfied
 For “Color” property, user
sees values from “Bright
Colors”

© Siemens AG 2011. All Rights Reserved.


Page 27 May-11 Siemens PLM Software
Project Based Conditions on LOV

More examples of project based conditions

S. Condition Signature Expression


No Description
1 Is object owned by (WorkspaceObject (o!=null AND
“Engineering” group o, UserSession u) o.fnd0isOwningGroup(“Eng
ineering”) ) OR
(u.group_name=“Engineeri
ng”

2 Is object owned by (WorkspaceObject u.


Project A o, UserSession u) fnd0isOwningORSessionPr
oject( o, “Project A”)

© Siemens AG 2011. All Rights Reserved.


Page 28 May-11 Siemens PLM Software
Project Based Conditions on LOVs

Future Direction
 Object Based Conditions on LOVs
 You can attach LOVs using conditions that use any property of a
Business Object

© Siemens AG 2011. All Rights Reserved.


Page 29 May-11 Siemens PLM Software
Platform Extensibility Services
Project Based Conditions on LOVs

Agenda
 Overview of existing functionality
 Limitations
 Project based conditions on
LOVs
 Other Changes

© Siemens AG 2011. All Rights Reserved.


Page 30 May-11 Siemens PLM Software
Other Changes

Usage of conditions for LOV Values inTeamcenter 9

 Usage of conditions for adding LOV values is obsolete


 Existing LOVs that use conditions for adding LOV values will continue
to work
You can’t select
condition while
adding a value

© Siemens AG 2011. All Rights Reserved.


Page 31 May-11 Siemens PLM Software
Other Changes

Changes in condition selection dialog


 You can see the condition signature in condition selection dialog

You can see


signature

In Teamcenter 2008 In Teamcenter 9


© Siemens AG 2011. All Rights Reserved.
Page 32 May-11 Siemens PLM Software
Related Sessions

Tuesday
9:15 AM Enterprise Knowledge Foundation Overview
2:25 PM Multi-Language Support in Teamcenter Overview
Wednesday
9:20 AM Advanced Topics with the BMIDE
3:10 PM What's New - Teamcenter install and upgrade
4:50 PM Teamcenter Upgrade - An Overview and Best Practices
Thursday
9:25 AM Project Based Conditions on LOVs
9:25 AM Model Driven extensibility and business logic in Teamcenter
1:00 PM Updating LOVs live to a production database with the BMIDE

© Siemens AG 2011. All Rights Reserved.


Page 33 May-11 Siemens PLM Software
Related Material

 Business Modeler IDE Guide


 Using conditions to display LOVs based on a project

 Best Practices Guides


 Business Modeler IDE Best Practices Guide
 Available on GTAC

 Contact for obtaining additional material


Brahma Somanchi – Software Development Manager
[email protected]
Office – (513) 576-2029
Mobile – (513) 658-5319

© Siemens AG 2011. All Rights Reserved.


Page 34 May-11 Siemens PLM Software
Thank You!

Siemens PLM Connection 2011


Las Vegas, NV
May 2-5

http://plmworld.org/ 35

You might also like