}
@Override
public Result execute(UIExecutionContext shellContext) throws Exception
{
ResourceTransaction transaction = resourceFactory.getTransaction();
if (transaction.isStarted())
{
return Results.fail("Resource Transaction is already started");
}
if (timeout.getValue() != null)
{
transaction.setTransactionTimeout(timeout.getValue());
}
transaction.begin();
return Results.success("Resource Transaction started");
}