fixed bug

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/ws-task-executor-widget@169073 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-06-12 15:02:23 +00:00
parent 2195c4ce24
commit 66d763a6a4
1 changed files with 9 additions and 7 deletions

View File

@ -274,17 +274,19 @@ public abstract class CreateTaskConfigurationView extends Composite {
customFieldEntriesList.clear();
cg_parameters_control.clear();
boolean addedPublicLink;
int countFileParameter=0;
boolean addedPublicLink = false;
for (TaskParameter operator : taskOperator.getInputOperators()) {
addedPublicLink = false;
if(!wsItem.isFolder()){
//IF ITEM IS A FILE ISTANCING FIRST PARAMETER FILE OCCURED WIHT PUBLIC LINK VALUE OF THE ITEM
if(!addedPublicLink && operator.getType().getType().equals("FILE")){
appendCustomField("publicLink", wsItem.getPublicLink(), operator.getType().getType(), false);
addedPublicLink = true;
//IF ITEM IS A FILE ISTANCING ITS FIRST FILE PARAMETER OCCURED (IF IT EXISTS) WIHT THE PUBLIC LINK OF THE ITEM
if(operator.getType().getType().equals("FILE")){
countFileParameter++;
if(countFileParameter==1){
appendCustomField("publicLink", wsItem.getPublicLink(), operator.getType().getType(), false);
addedPublicLink = true;
}
}
}