use futures::executor::block_on; use zeebest::Client; fn main() { let client = Client::new("127.0.0.1", 26500).unwrap(); let result = block_on(client.deploy_bpmn_workflow("simple-process", SIMPLE_PROCESS_XML.into())); println!("deploy workflow result: {:?}", result); } const SIMPLE_PROCESS_XML: &'static str = r#" SequenceFlow_18tqka5 SequenceFlow_0ei7pxo SequenceFlow_18tqka5 SequenceFlow_10zt7r3 SequenceFlow_10zt7r3 SequenceFlow_0ei7pxo "#;