fluxpro-engine 0.1.0

A feature-gated workflow and process engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::api_handlers::proc_def_methods::create_process_def;
use crate::api_handlers::proc_events_methods::post_signal;
use crate::api_handlers::proc_instance_methods::start_proc_instance::start_proc_instance;
use actix_web::web;

pub fn config(conf: &mut web::ServiceConfig) {
    let process_def_scope = web::scope("/process_definitions").service(create_process_def);
    let process_scope = web::scope("/process").service(start_proc_instance);
    let instance_scope = web::scope("/instance").service(post_signal);
    let flux_pro_scope = web::scope("/fluxpro")
        .service(process_def_scope)
        .service(process_scope)
        .service(instance_scope);

    conf.service(flux_pro_scope);
}