Skip to content

循环节点中break节点的使用 #137

Description

@chenye264

hello 各位cpmpileflow :
感谢大佬开源的compileflow,我已经感觉到这个项目的可能会带给我开发的好处
但是在使用上我有如下疑惑

如何在循环节点中使用break 节点,设置如下的break节点,结果没有效果:

    <loopProcess id="13" name="循环节点" g="20,75,198,190" collectionVarName="pList" variableName="p" indexVarName="i"
                 variableClass="java.lang.String" startNodeId="13-1" endNodeId="13-2">
        <transition g=":-15,20" to="8"/>
        <autoTask id="13-1" name="每人唱一首歌" g="70,95,88,48">
            <action type="spring-bean">
                <actionHandle bean="mockSpringBean" clazz="com.example.mock.MockSpringBean" method="sing">
                    <var name="p1" description="" dataType="java.lang.String" contextVarName="p" defaultValue=""
                         inOutType="param"/>
                </actionHandle>
            </action>
        </autoTask>
    <break id="13-2" name="循环跳出" expression="i &gt;= 1" g="305,205,80,40">
    </break>
    </loopProcess>

是否可以提供下break节点以及continue节点的使用案例喃?

感谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions