You can capture output from shell script and pass it to java action.In the shell script , echo the property like 'dateVariable=${DATE}' and add the capture-output element int the shell action. This will let you capture dateVariable from shell script.In the java action, You can pass the captured variable as parameter as
${wf:actionData('shellAction')['dateVariable']} where shellAction is the shell action name.
You can capture output from shell script and pass it to java action.In the shell script , echo the property like 'dateVariable=${DATE}' and add the capture-output element int the shell action. This will let you capture dateVariable from shell script.In the java action, You can pass the captured variable as parameter as ${wf:actionData('shellAction')['dateVariable']} where shellAction is the shell action name.
Sample workflow :-
In the shell script ,echo the value as below