Comments (4)
Can you provide your code to reproduce the issue? And what platform you are running your code on?
from processpiper.
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.
@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.
Cool thank you for the quick help!
from processpiper.
Related Issues (11)
- [FEAT] Output in SVG HOT 1
- the last part of the generated diagram won't be shown is the diagram is too long HOT 4
- Error in find_nearest_points_same_pool_diff_lanes HOT 4
- [feat] Output in BPMN format HOT 4
- ModuleNotFoundError: No module named 'processpiper' HOT 4
- Gateway Text positioning issue HOT 1
- [Feat] Render SVG from text input HOT 3
- Difficulties in drawing generation. HOT 1
- Exporting diagram to XML HOT 2
- OSError: cannot open resource for README example HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from processpiper.