ECA rules will only execute after changes to an existing asset collection, but you will need something to execute while the asset collection is being created.

For this we have a notion of project constructors. See the rdfs:comment at teamwork:projectConstructor. Basically you need to define an SWP file that links defines an SWP element, e.g. ex:MyMethod as subclass of ui:Methods that adds the extra teamwork:viewer triples, and then add

    taxonomies:ProjectType teamwork:projectConstructor ex:MyMethod

to make sure it gets executed whenever a new Taxonomy gets created.

The ui:prototype of ex:MyMethod could be as simple as

<ui:group let:teamGraph="{= teamwork:currentTeamGraph() }">
    <ui:setContext ui:queryGraph="{= ?teamGraph }">
        <ui:update ui:updateQuery="{! INSERT { ?teamGraph teamwork:viewer <WHOEVER> } WHERE { } }"/>
    </ui:setContext>
</ui:group>

(This is untested)

HTH
Holger


On 2021-11-26 10:43 pm, [email protected] wrote:
Hi,
     There is requirement to add an user as Viewer automatically in the background whenever a brand new Taxonomy is created in Enterprise Data Governance (EDG). For this can the Event Condition Action Framework be used? If yes then please share an example Rule for adding an user automatically to a new Taxonomy.

Thanks,
Sanjeev
--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/e49cedbb-cbdb-4506-94fa-135d29c2344bn%40googlegroups.com <https://groups.google.com/d/msgid/topbraid-users/e49cedbb-cbdb-4506-94fa-135d29c2344bn%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
You received this message because you are subscribed to the Google Groups "TopBraid 
Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/2599fc1f-3020-7f23-970b-02de6aafc1bf%40topquadrant.com.

Reply via email to