Gaussian Process based Feedforward Control for Nonlinear Systems with Flexible Tasks