Hi Ricardo,
Here is an example of how Script task can be used.
The below sample script uses Workflow variable 'Counter' and workflow input parameter 'sam_account_name' and sets another workflow input parameter 'SAM account'.
def var
String b
String account
b = execution.getVariable("wf_var_Counter".toString())
account = execution.getVariable("wf_in_sam_account_name")
account = account.concat(b);
execution.setVariable("wf_var_SAMAccount", account)
------------------------------
Sneha Tripathi
Serviceaide
------------------------------