tiagobento commented on issue #870:
URL: 
https://github.com/apache/incubator-kie-issues/issues/870#issuecomment-1920091267

   @ljmotta and I had a very interesting conversation about this today... we 
went through some scenarios and simulated situations that can happen depending 
on what users want to do. We even discussed the situation where a Decision is 
contained by more than one Decision Service.
   
   We kind of realized that options 2 and 3 complement each other, and we think 
we found a way to make all this complexity manageable. 
   
   I'll try and summarize our findings here.
   
   Premises:
   - All DRG nodes not contained by a Decision Service can be hidden or added 
to a DRD, including Decision Services themselves.
   - A Decision Service can either be I) Collapsed; or II) Expanded and showing 
all of its contained Decisions inside of its bounds.
   - A Decision Service in expanded form must have exactly the same depiction 
in all DRDs.
   - If a Decision and one of its Decision Services are part of a DRD, this 
Decision is either inside one of its containing Decision Services (when it is 
in expanded form), or not showing at all (when it is collapsed). I.e., a 
Decision cannot appear outside of one of its containing Decision Services, even 
if all its containing Decision Services are collapsed.
   
   
   ### Short term actions
   - All DRDs will always have the exact same depiction of a Decision Service.
   - A DRD can't ever have two Decision Services in the expanded form if more 
than one Decision Service in the DRD contains a Decision that is included in 
the DRD.
   - When a Decision Service is added to a DRD, all of its contained Decisions 
will be moved or added to the DRD, so that the depiction of that Decision 
Service is exactly the same as all other DRDs.
   - Moving or changing the DRG of the Decisions contained by a Decision 
Service will replicate the changes to all other DRDs, so that all DRDs always 
have the same depiction of the Decision Service.
   - Collapsing a Decision Service in one DRD does not alter other DRDs.
   
   ### Medium/long term actions
   - The normalization process introduced by #785 will be improved to make sure 
all DRDs have exactly the same depiction of a Decision Service. If there are no 
DRDs where all contained Decisions are depicted, we'll automatically lay them 
out inside the Decision Services that are in expanded form.
   - When a Decision Service is collapsed, a new and very distinguishable edge 
will be rendered between nodes that have an direct or indirect relationship 
with one of the Decisions contained by the collapsed Decision Service. This new 
edge will also be used when there's a indirect relationship between nodes of 
the same DRD.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to