Add getPublicData
This commit is contained in:
parent
d243b58101
commit
e566c17a9a
@ -1188,6 +1188,15 @@ export default class Services {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public getPublicData(process: Process): Record<string, any> | null {
|
||||||
|
const lastCommitedState = this.getLastCommitedState(process);
|
||||||
|
if (lastCommitedState && lastCommitedState.descriptions) {
|
||||||
|
return lastCommitedState.descriptions;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public getProcessName(process: Process): string | null {
|
public getProcessName(process: Process): string | null {
|
||||||
const lastCommitedState = this.getLastCommitedState(process);
|
const lastCommitedState = this.getLastCommitedState(process);
|
||||||
if (lastCommitedState && lastCommitedState.descriptions) {
|
if (lastCommitedState && lastCommitedState.descriptions) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user