Interface ReviseBehavior


  • @API
    public interface ReviseBehavior
    The revise behavior controls revisioning rules/behavior.
    Since:
    2017-03-13
    • 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 current create configuration
        context - The current context
        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 current object 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 current object 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 current object data instance
        Returns:
        An integer. Any value less than 1 is ignored.
        Since:
        2017-03-16