Note that there are some explanatory texts on larger screens.

plurals
  1. POIntegrity constraint in the XML schema
    primarykey
    data
    text
    <p>I have an XML like this (a workflow represents a sort of a class that is instantiated by a process). </p> <pre><code>&lt;workflowManagementSystem&gt; &lt;workflows&gt; &lt;workflow name="workflow1"&gt; &lt;actions&gt; &lt;action name="action1" role="role1"&gt;&lt;/action&gt; &lt;action name="action2" role="role3"&gt;&lt;/action&gt; &lt;action name="action3" role="role4"&gt;&lt;/action&gt; &lt;/actions&gt; &lt;/workflow&gt; &lt;workflow name="workflow2"&gt; &lt;actions&gt; &lt;action name="action3" role="role4"&gt;&lt;/action&gt; &lt;action name="action2" role="role3"&gt;&lt;/action&gt; &lt;action name="action4" role="role4"&gt;&lt;/action&gt; &lt;/actions&gt; &lt;/workflow&gt; &lt;/workflows&gt; &lt;actors&gt; &lt;actor name="actor1" role="role1"&gt;&lt;/actor&gt; &lt;actor name="actor2" role="role2"&gt;&lt;/actor&gt; &lt;actor name="actor3" role="role3"&gt;&lt;/actor&gt; &lt;actor name="actor4" role="role4"&gt;&lt;/actor&gt; &lt;actor name="actor5" role="role2"&gt;&lt;/actor&gt; &lt;/actors&gt; &lt;processes&gt; &lt;process workflow="workflow1"&gt; &lt;actionStatuses&gt; &lt;actionStatus action="action1" actor="actor1"&gt;&lt;/actionStatus&gt; &lt;actionStatus action="action2" actor="actor3"&gt;&lt;/actionStatus&gt; &lt;/actionStatuses&gt; &lt;/process&gt; &lt;process workflow="workflow1"&gt; &lt;actionStatuses&gt; &lt;actionStatus action="action1" actor="actor1"&gt;&lt;/actionStatus&gt; &lt;actionStatus action="action2" actor="actor5"&gt;&lt;/actionStatus&gt; &lt;actionStatus action="action3" actor="actor4"&gt;&lt;/actionStatus&gt; &lt;/actionStatuses&gt; &lt;/process&gt; &lt;process workflow="workflow1"&gt; &lt;actionStatuses&gt; &lt;actionStatus action="action2" actor="actor5"&gt;&lt;/actionStatus&gt; &lt;actionStatus action="action4" actor="actor4"&gt;&lt;/actionStatus&gt; &lt;/actionStatuses&gt; &lt;/process&gt; &lt;/processes&gt; &lt;/workflowManagementSystem&gt; </code></pre> <p>I'd like to declare some constraints like: </p> <p>1) The name of the workflow has to be unique.<br/> 2) The name of the action has to be unique within the scope of the workflow containing it.<br/> 3) An action can be repeated within the process (more actionStatus referring to the same action).<br/> 4) An actionStatus should refer only to the action belonging to the particular workflow instantiated by the father process.<br/> 5) The actor indicated in actionStatus must belong to the same role as specified in the action to which it refers.<br/></p> <p>Is it possible?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload