包含或异或有什么区别?
我一直在研究一些业务流程执行语言(BPEL)和相关的建模系统(BPMN),其中设计人员需要了解流程流的包容性和排他性网关。非常感谢您的任何帮助,假设适用相同的规则,对术语的一般解释就足够了。
这是我试图在对 Mark 的响应中理解的一些技术文本 - 对于连接两个活动的简单链接,状态默认为 true,因此目标活动始终会被执行。但是,如果将转换条件应用于链接,例如测试流程变量中包含的值,则状态可能会设置为“假”,从而阻止任何目标活动的执行。如果目标有多个链接,则执行或阻止的决定基于各个链接状态值的或。只需要一个链接状态为 true 即可让目标执行;因此可以使用转换条件来映射 BPMN 的 Inclusive OR 网关
I have been studying some Business Process Execution Language (BPEL) and the associated modelling system (BPMN) where the designer needs to learn about inclusive and exclusive gateways for process flow. Thanks very much for any help and a general explanation of the terms would be enough assuming the same rules apply.
This is some technical text I am trying to understand in response to Mark- For simple links that join two activities, the status defaults to true so the target activity always gets executed. However, if a transition condition is applied to the link, such as a test of the value contained in a process variable, the status may be set to 'false', blocking the execution of any target activities. If a target has multiple links then the decision to execute or block is based on the OR of the individual link status values. Only one link status need be true for the target to execute; hence transition conditions can be used to map the Inclusive OR gateway of BPMN
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
作为一名哲学专业的毕业生,这个话题曾经甚至吸引了非常优秀的毕业生。
这首先是一个语法问题。
您想去法国还是意大利?
如果一个人回答“是”,则意味着一个人会很乐意访问这两个国家。
vs
您想去法国...还是意大利? (意思是在两者之间选择)。
As a philosophy graduate, this topic used to catch-out even very good graduates.
It is an issue of grammar, more than anything.
Would you like to visit France or Italy?
If one replied 'yes' it wouldean that one would happily visit both countries.
vs
Would you like to visit France...or Italy? (meaning choose between the two).
考虑语句“A OR B”的值:
包含 OR 允许两种可能性以及其中任何一种。因此,如果 A 或 B 为 True,或者两者均为 True,则语句值为 True。
而独占 OR 只允许一种可能性。因此,如果 A 或 B 为真,则且只有此时值为 True。如果 A 和 B 都为 True,则该语句的值也将为 False。
独家或的示例:在一家餐厅,您会获得一张优惠券,可以让您吃三明治或汉堡。这是英语中的异或语句。您可以选择其中之一,但不能同时选择两者。
Considering the value for the statement "A OR B":
Inclusive OR allows both possibilities as well as either of them. So, if either A or B is True, or if both are True, then the statement value is True.
Whereas Exclusive OR only allows one possibility. So if either A or B is true, then and only then is the value True. If both A and B are True, even then the statement's value will be False.
Example for Exclusive OR: At a restaurant, you are offered a coupon which entitles you to eat either a Sandwich OR a Burger. This is an exclusive OR statement in English language. You can choose either one of them, but not both.
不同之处在于两个组件发生的情况都是
true
。使用包含或,结果也是true
。使用独占或,结果为false
。独家或有点像汉兰达:只能有一个。 :-)
The difference is what happens with both components are
true
. With inclusive or, the result is alsotrue
. With exclusive or, the result isfalse
.Exclusive or is kinda like Highlander: There can be only one. :-)
作为结果表:
包含或:
独占或:
所以,aus 你可以看到,如果两者都是
true
,则独占或给出false
,因为它的独占意味着A或 B 但不能两者兼而有之as a result table:
inclusive or:
exclusive or:
so, aus you can see, an exclusive or give
false
if both aretrue
, cause its exclusive means A or B but not both包容性“或”:
逻辑或表示如果任何输入为“ON”,则其输出为“ON”。它包括“两个”输入均为“ON”(至少一个输入为“ON”)。
独占“或”:
它与包含 OR 相同,(唯一的)例外是当“两个”输入都为“ON”时,输出将关闭(不像包含 OR 中那样为 ON),因此名称为 EXCLUSIVE“OR”。
INCLUSIVE 'OR' :
Logic OR means its output is 'ON' if any of the input is 'ON'. It includes 'both' inputs are 'ON' (At least one input is 'ON').
EXCLUSIVE 'OR' :
It is same as Inclusive OR, with the (only) EXCEPTION is while 'both' inputs are 'ON' then the output goes OFF, (NOT ON as in the Inclusive OR) and hence the name EXCLUSIVE 'OR'.
完全不同的观点——回到日常英语对话
包容性/排他性的事情可以说得更清楚:
你想要茶还是咖啡? (意思是,想喝点什么?)=包容性
或者
您想要茶还是咖啡? (意味着你必须在两者之间进行选择)=排他性
well on a totally different note - and getting back to everyday English conversation
the inclusive/exclusive thing can be made clearer:
Do you want tea or coffee? (meaning, fancy something to drink?) = inclusive
or
Do you want tea or coffee? (meaning you have to choose between the two) = exclusive
在包含 OR 中,条件是两者中至少有一个必须为真。然而,在异或中,BOTH不可能为真,但至少有一个必须为真。
In inclusive OR, the condition is atleast one of the two must be true. Whereas, in exclusive OR, BOTH cannot be true,atleast one must be true.