|
@@ -10,6 +10,7 @@ import linkState from 'linkstate'; |
|
|
import wbParseWorkflowDef from 'wb-parse-workflow-def';
|
|
|
import wbParseWorkflowDef from 'wb-parse-workflow-def';
|
|
|
import { wbParseWorkflowInputs, wbSubmitContainerRequest } from 'wb-submit-container-request';
|
|
|
import { wbParseWorkflowInputs, wbSubmitContainerRequest } from 'wb-submit-container-request';
|
|
|
import WBWorkflowInput from 'wb-workflow-input';
|
|
|
import WBWorkflowInput from 'wb-workflow-input';
|
|
|
|
|
|
import { parseKeepRef } from 'wb-process-misc';
|
|
|
|
|
|
|
|
|
class WBLaunchWorkflowPage extends Component {
|
|
|
class WBLaunchWorkflowPage extends Component {
|
|
|
constructor(...args) {
|
|
|
constructor(...args) {
|
|
@@ -30,7 +31,7 @@ class WBLaunchWorkflowPage extends Component { |
|
|
const def = wbParseWorkflowDef(xhr.response.definition);
|
|
|
const def = wbParseWorkflowDef(xhr.response.definition);
|
|
|
const inputs = {};
|
|
|
const inputs = {};
|
|
|
const main = def['$graph'].find(a => (a.id === '#main'));
|
|
|
const main = def['$graph'].find(a => (a.id === '#main'));
|
|
|
main.inputs.map(a => (inputs[a.id] = JSON.stringify(a.default)));
|
|
|
|
|
|
|
|
|
main.inputs.map(a => (inputs[a.id] = JSON.stringify(parseKeepRef(a.default))));
|
|
|
this.setState({
|
|
|
this.setState({
|
|
|
'workflow': xhr.response,
|
|
|
'workflow': xhr.response,
|
|
|
'workflowDefinition': def,
|
|
|
'workflowDefinition': def,
|
|
|