@@ -31,3 +31,18 @@ pub enum FlowStatus {
|
||||
Error,
|
||||
Finished,
|
||||
}
|
||||
|
||||
impl Flow {
|
||||
pub fn id(&self) -> u32 {
|
||||
self.id
|
||||
}
|
||||
pub fn caller_id(&self) -> u32 {
|
||||
self.caller_id
|
||||
}
|
||||
pub fn context_id(&self) -> u32 {
|
||||
self.context_id
|
||||
}
|
||||
pub fn jobs(&self) -> &Vec<u32> {
|
||||
&self.jobs
|
||||
}
|
||||
}
|
||||
|
@@ -36,3 +36,24 @@ pub enum JobStatus {
|
||||
Error,
|
||||
Finished,
|
||||
}
|
||||
|
||||
impl Job {
|
||||
pub fn id(&self) -> u32 {
|
||||
self.id
|
||||
}
|
||||
pub fn caller_id(&self) -> u32 {
|
||||
self.caller_id
|
||||
}
|
||||
pub fn context_id(&self) -> u32 {
|
||||
self.context_id
|
||||
}
|
||||
pub fn depends(&self) -> &Vec<u32> {
|
||||
&self.depends
|
||||
}
|
||||
pub fn prerequisites(&self) -> &Vec<String> {
|
||||
&self.prerequisites
|
||||
}
|
||||
pub fn script_type(&self) -> ScriptType {
|
||||
self.script_type.clone()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user