.renameProcess - PeterNaydenov/code-assembly-line GitHub Wiki
Change name of process/processes.
tplEngine.renameProcess ( {oldName : newName} )
- oldName: string. Name of existing process;
- newName: string. Desired new process name;
- Method return options:
- tplEngine;
- Method is chainable;
Example:
const doSomething = [
{ do: 'draw', tpl: 'any' }
]
tplEngine
.insertProcess ( doSomething, 'something' ) // Process 'something' was inserted
.renameProcess ( { 'doSomething' : 'update' } )
// -> Process 'something' will be renamed to 'update'.