Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chenye264 opened this issue Jan 10, 2025 · 1 comment
Open

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

chenye264 opened this issue Jan 10, 2025 · 1 comment

Comments

@chenye264
Copy link

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节点的使用案例喃?

感谢

@chenye264 chenye264 changed the title 循环节点中的continua 循环节点中break节点的使用 Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@chenye264 and others