Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Of course, the recurrence should be set appropriately, to run e.g. once a day.

GUI configuration to display orphaned tasks

To display orphaned tasks in GUI, you can configure object collection with the filter for orphaned tasks.

Object collection looks like

Code Block
languagexml
titleOrphaned tasks object collection
<objectCollection xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" oid="32456589-1122-1643-2751-469323287545" version="10">
    <name>Orphaned tasks</name>
    <type>TaskType</type>
    <filter>
        <q:equal>
            <q:path>policySituation</q:path>
            <q:value>http://midpoint.evolveum.com/xml/ns/public/model/policy/situation#orphaned</q:value>
        </q:equal>
    </filter>
    <domain>
        <collectionRef oid="00000000-0000-0000-0001-000000000007" relation="org:default" type="c:ObjectCollectionType">
            <!-- All tasks -->
        </collectionRef>
    </domain>
</objectCollection>

To add menu item for Orphaned tasks collection to the Server tasks section, add the following configuration to  the system configuration.

Code Block
languagexml
titleOrphaned tasks menu item configuration
<systemConfiguration>
                .............
                <adminGuiConfiguration>
                    <objectCollectionViews>
                        <objectCollectionView>
                            <identifier>orphaned-tasks</identifier>
                            <type>c:TaskType</type>
                            <collection>
                                <collectionRef oid="32456589-1122-1643-2751-469323287545" relation="org:default" type="c:ObjectCollectionType">
                                    <!-- Orphaned tasks -->
                                </collectionRef>
                            </collection>
                        </objectCollectionView>
                    </objectCollectionViews>
                </adminGuiConfiguration>
</systemConfiguration>