Giter Site home page Giter Site logo

Comments (4)

csgoh avatar csgoh commented on May 24, 2024

Can you provide your code to reproduce the issue? And what platform you are running your code on?

from processpiper.

AccidentalGenius101 avatar AccidentalGenius101 commented on May 24, 2024

Yes for sure!
And I am running the code on window in vscode

from processpiper import ProcessMap, EventType, ActivityType, GatewayType

with ProcessMap(
    "Title", colour_theme="BLUEMOUNTAIN") as my_process_map:
    with my_process_map.add_pool("Pool") as pool1:
        with pool1.add_lane("Lane 1") as lane1:
            receive_request1 = lane1.add_element("Receive request", ActivityType.TASK)
            analyse_request = lane1.add_element("Analyse request", ActivityType.TASK)
            are_clarifications_needed = lane1.add_element("Are clarifications needed?", GatewayType.EXCLUSIVE)
            approve_request = lane1.add_element("Approve request", ActivityType.TASK)
            allocate_subject = lane1.add_element("Allocate schema/subject area", ActivityType.TASK)
            submit_request = lane1.add_element("Submit request for schema/subject area and group", ActivityType.TASK)
            end = lane1.add_element("Close ticket", EventType.END)

        with pool1.add_lane("Lane 2") as lane2:
            receive_request2 = lane2.add_element("Receive request", ActivityType.TASK)
            review_request1 = lane2.add_element("Review request", ActivityType.TASK)
            are_changes_needed = lane2.add_element("Are changes needed?", GatewayType.EXCLUSIVE)
            approve_final1 = lane2.add_element("Approve final version", ActivityType.TASK)

        with pool1.add_lane("Lane 3") as lane3:
            start = lane3.add_element("Request new subject area", EventType.START)
            notify1 = lane3.add_element("Notify", EventType.MESSAGE)
            update_request = lane3.add_element("Update request", ActivityType.TASK)
            review_changes = lane3.add_element("Review changes", ActivityType.TASK)
            apply_changes = lane3.add_element("Apply changes", ActivityType.TASK)
            notify2 = lane3.add_element("Notify", EventType.MESSAGE)

        with pool1.add_lane("Lane 4") as lane4:
            create_group = lane4.add_element("Create group", ActivityType.TASK)
            create_subject = lane4.add_element("Create schema/subject area", ActivityType.TASK)

        with pool1.add_lane("Lane 5") as lane5:
            notify3 = lane5.add_element("Notify", EventType.MESSAGE)
            approve_final2 = lane5.add_element("Approve final version", ActivityType.TASK)
        

    start.connect(receive_request1).connect(notify1).connect(analyse_request).connect(are_clarifications_needed)
    are_clarifications_needed.connect(approve_request, "No")
    are_clarifications_needed.connect(update_request, "Yes").connect(analyse_request)
    approve_request.connect(receive_request2).connect(review_request1).connect(are_changes_needed)
    are_changes_needed.connect(apply_changes, "Yes").connect(review_changes)
    are_changes_needed.connect(approve_final1, "No")
    review_changes.connect(approve_final1).connect(notify3).connect(approve_final2)
    approve_final2.connect(submit_request).connect(create_group).connect(create_subject)
    create_subject.connect(allocate_subject).connect(notify2).connect(end)

    my_process_map.set_footer("Generated by ProcessPiper")
    my_process_map.draw()
    my_process_map.save("output/test.png")

from processpiper.

csgoh avatar csgoh commented on May 24, 2024

@AccidentalGenius101 This is an easy fix. Just add width argument to the ProcessMap parameter. See code below:

with ProcessMap(
    "Title", colour_theme="BLUEMOUNTAIN", width=4800) as my_process_map:
    with my_process_map.add_pool("Pool") as pool1:

The default width is just 3200, you can always extend it.

from processpiper.

AccidentalGenius101 avatar AccidentalGenius101 commented on May 24, 2024

Cool thank you for the quick help!

from processpiper.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.