Add WorkflowTask.error field to store error message.
Change task status to ERROR and save the error message when the error araise on task execution..
Show error if task has not connected input connections.