Interface ReviseBehavior
-
@API public interface ReviseBehavior
The revise behavior controls revisioning rules/behavior.- Since:
- 2017-03-13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getMinorOrder(BusinessObjectData bod)
May be used to provide the "minororder" value used as part of the revise MQL clause.java.lang.String
getNextRevision(BusinessObjectData bod)
May return the value of the next revision to be used.java.lang.String
getRevisionOf(com.technia.tif.enovia.integration.create.def.CreateConfig cc, Context context)
This method returns the ID of the object to be revised.boolean
isReviseWithFiles(BusinessObjectData bod)
-
-
-
Method Detail
-
getRevisionOf
java.lang.String getRevisionOf(com.technia.tif.enovia.integration.create.def.CreateConfig cc, Context context)
This method returns the ID of the object to be revised. If null is returned, that will indicate that no revisioning will take place.- Parameters:
cc
- The currentcreate configuration
context
- The currentcontext
- Returns:
- Either null to indicate that we should not revise anything, e.g. perform a create, OR the ID of the object to be revised.
- Since:
- 2017-03-16
-
isReviseWithFiles
boolean isReviseWithFiles(BusinessObjectData bod)
- Parameters:
bod
- The currentobject data
instance- Returns:
- If to revise with files or not. This typically controls the flag
"file" or "!file" in the MQL command that revises the business
object. But it is up to the
BusinessObjectProcessor
to handle this flag. - Since:
- 2017-03-13
-
getNextRevision
java.lang.String getNextRevision(BusinessObjectData bod)
May return the value of the next revision to be used. If this is not known, null can be returned. That would indicate that next revision is provided by the ENOVIA kernel according to the object's policy.- Parameters:
bod
- The currentobject data
instance- Returns:
- The next revision or null. See above.
- Since:
- 2017-03-16
-
getMinorOrder
int getMinorOrder(BusinessObjectData bod)
May be used to provide the "minororder" value used as part of the revise MQL clause.- Parameters:
bod
- The currentobject data
instance- Returns:
- An integer. Any value less than 1 is ignored.
- Since:
- 2017-03-16
-
-