Blueprint Developer Manual / Version 2210
Table Of Contents
This action is supposed to follow up GetDerivedContentsAction
. It filters the
derived contents in two ways.
It checks for each content in the given
derivedContents
whether the content'smasterVersion
is more recent than the corresponding version in the givenmasterContentObjects
. In this case, the content is excluded from thederivedContents
. If askippedContentsVariable
is given, all of these excluded contents are stored under this variable of the corresponding process.For all remaining contents from
derivedContents
, it checks whether the content has itsignoreUpdates
property set (seeContentObjectSiteAspect#getIgnoreUpdates()
). If so, this content is also excluded from thederivedContents
(but not stored underskippedContentsVariable
).
masterContentObjects
| |
Required | yes |
Description | The name of the variable that contains the list of content objects in the master site |
derivedContentsVariable
| |
Required | yes |
Description | The name of the variable into which a list of all derived contents is stored |
skippedContentsVariable
| |
Required | no |
Description | The name of the variable into which the list of skipped contents (because of outdated master content object) is stored. |
Table 5.32. Attributes of FilterDerivedContentsAction
<Variable name="siteId" type="String"/> <AggregationVariable name="masterContentObjects" type="Resource"/> <AggregationVariable name="derivedContents" type="Resource"/> <AggregationVariable name="skippedContents" type="Resource"/> ... <AutomatedTask name="StartSyncFromParentToTarget" successor="CheckIfDerivedContentsEmpty"> <Action class="com.coremedia.translate.workflow.GetDerivedContentsAction" masterContentObjectsVariable="masterContentObjects" derivedContentsVariable="derivedContents" createdContentsVariable="createdContents" targetSiteIdVariable="siteId"/> <Action class="com.coremedia.translate.workflow.FilterDerivedContentsAction" masterContentObjectsVariable="masterContentObjects" derivedContentsVariable="derivedContents" skippedContentsVariable="skippedContents"/> </AutomatedTask>
Example 5.41. Usage of FilterDerivedContentsAction