close

Filter

loading table of contents...

Blueprint Developer Manual / Version 2307

Table Of Contents
RollbackTranslationAction

If the master content is not needed in the target site, the translation workflow can be aborted with the RollbackTranslationAction. In this case all content items and folders that were created by the Section, “GetDerivedContentsAction will be deleted.

If not disabled, all target contents will be marked as no longer being in translation.

Caution

Must Set skipCleanInTranslation to True

If you configured CleanInTranslationFinalAction within your localization process definition, it is important to set skipCleanInTranslation to true for this action.

If not doing so, your editors may end up with a false-negative in-translation state displayed in CoreMedia Studio.

skipCleanInTranslation
Required no
Description If using the default false the in-translation status is cleared implicitly by this action. It is recommended, though, to set this to true and activate the explicit CleanInTranslationFinalAction instead.
contentsVariable
Required yes
Description The name of the variable that contains all content items and folders that have to be deleted during while rolling back the translation
derivedContentsVariable
Required no
Description The name of the variable that contains all translated content items. Defaults to "derivedContents". This variable name is ignored/irrelevant if skipCleanInTranslation is set to true.
masterContentObjectsVariable
Required no
Description The name of the variable that contains all master content objects. Defaults to "masterContentObjects". This variable name is ignored/irrelevant if skipCleanInTranslation is set to true.

Table 5.38. Attributes of RollbackTranslationAction


<AggregationVariable name="createdContents" type="Resource"/>
...

<AutomatedTask name="Rollback" successor="Finish">
  <Action
    class="com.coremedia.translate.workflow.RollbackTranslationAction"
    skipCleanInTranslation="true"
    contentsVariable="createdContents"/>
</AutomatedTask>

Example 5.48. Usage of RollbackTranslationAction


<AggregationVariable name="createdContents" type="Resource"/>
...

<AutomatedTask name="Rollback" successor="Finish">
  <Action
    class="com.coremedia.translate.workflow.RollbackTranslationAction"
    derivedContentsVariable="derivedContents"
    masterContentObjectsVariable="masterContentObjects"
    contentsVariable="createdContents"/>
</AutomatedTask>

Example 5.49. Usage of RollbackTranslationAction (implicit clean-in-translation)


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.