Blueprint Developer Manual / Version 2404
Table Of ContentsThe GetDerivedContentsAction retrieves or creates all derived contents for the given master content objects in the target site(s).
Derived contents will be marked as being in translation.
Contents are created in the name of the translation workflow robot user.
targetSiteIdVariable
| |
Required | yes |
Description | The name of the variable that contains the id of the target site |
masterContentObjects
| |
Required | yes |
Description | The name of the variable that contains the list of content objects in the master site |
derivedContentsVariable
| |
Required | no |
Description | The name of the variable into which a list of all derived contents is stored |
createdContentsVariable
| |
Required | no |
Description | The name of the variable into which a list of all newly created contents is stored. If the workflow is subsequently aborted, these contents can be deleted by the action described in Section, “RollbackTranslationAction” |
placeholderPreparationStrategyVariable
| |
Required | no |
Description |
The name of the variable holding the strategy to determine derived contents.
The strategy can be either missingReferencesPreparation or missingOrByTranslationStatePreparation .
While the first one only considers content that does not yet exist in the target site,
the second one also considers content that is outdated in the target site.
|
Table 5.30. Attributes of GetDerivedContentsAction
<Variable name="siteId" type="String"/> <AggregationVariable name="masterContentObjects" type="Resource"/> <AggregationVariable name="derivedContents" type="Resource"/> <AggregationVariable name="createdContents" type="Resource"/> <Variable name="placeholderPreparationStrategy" type="String"/> ... <AutomatedTask name="GetDerivedContents" successor="FollowUpAction"> <Action class="com.coremedia.translate.workflow.GetDerivedContentsAction" masterContentObjectsVariable="masterContentObjects" derivedContentsVariable="derivedContents" createdContentsVariable="createdContents" placeholderPreparationStrategyVariable="placeholderPreparationStrategy" targetSiteIdVariable="siteId"/> </AutomatedTask>
Example 5.37. Usage of GetDerivedContentsAction