IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
소스 검색

Started working on using default values in workflows.

master
부모
커밋
9268bcba84
1개의 변경된 파일13개의 추가작업 그리고 6개의 파일을 삭제
  1. +13
    -6
      frontend/src/js/page/wb-launch-workflow-page.js

+ 13
- 6
frontend/src/js/page/wb-launch-workflow-page.js 파일 보기

@@ -113,12 +113,19 @@ class WBLaunchWorkflowPage extends Component {
let prom = makeArvadosRequest(arvHost, arvToken,
'/arvados/v1/workflows/' + workflowUuid);
prom = prom.then(xhr => this.setState({
'workflow': xhr.response,
'workflowDefinition': parseDefinition(xhr.response.definition),
'defaultProcessName': xhr.response.name + ' ' + (new Date().toISOString()),
'defaultProcessDescription': xhr.response.description
}));
prom = prom.then(xhr => {
const def = parseDefinition(xhr.response.definition);
const inputs = {};
const main = def['$graph'].find(a => (a.id === '#main'));
main.inputs.map(a => (inputs[a.id] = JSON.stringify(a.default)));
this.setState({
'workflow': xhr.response,
'workflowDefinition': def,
'defaultProcessName': xhr.response.name + ' ' + (new Date().toISOString()),
'defaultProcessDescription': xhr.response.description,
inputs
});
});
}
renderInput(inputSpec) {


불러오는 중...
취소
저장