Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying scripts #1

Open
jessewindebank1809 opened this issue Jul 1, 2023 · 4 comments
Open

Deploying scripts #1

jessewindebank1809 opened this issue Jul 1, 2023 · 4 comments
Labels
feature New feature or request

Comments

@jessewindebank1809
Copy link

Hi @michal-kapala,

This is brilliant thanks for sharing!

Have you found a streamlined process to deploy scripts to a Jitterbit project from VS code or you having to copy and paste into Jitterbit Studio?

@michal-kapala
Copy link
Owner

michal-kapala commented Jul 3, 2023

@jessewindebank1809 thank you, the extension is in early development, the main priority is to add static error checking for scripts (script-wide scope only). As of now there are no project management/deployment features or cross-script checking.

Jitterbit stores all objects including scripts in XML format, you can find them in Jitterbit Studio's directory at /projects/<project dir>/<environment dir>/Data/Script. Here's an example one:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Entity type="Script">
  <Header Deleted="false" DeployDirty="true" Deployed="false" HasMoved="false" ID="05011b25-d341-4ca5-9f32-42ee41f2f286" Name="Read Output">
    <konga.string name="Description"/>
  </Header>
  <Properties>
    <Item key="script_id" value="03021b25-d341-4ca5-9f32-42ee41f2f286"/>
  </Properties>
  <konga.string name="script">
    &lt;trans&gt;
    ReadFile("s.a7347471-ace8-4fc3-b549-7c673523031b")
    &lt;/trans&gt;
  </konga.string>
</Entity>

For direct cloud deployment the extension would need to hit Jitterbit APIs to authenticate to Harmony and then upload the changes. I don't think Jitterbit has any API integration guide on this and I'm not even sure they would be okay with that as this is not an affiliated project.

I did consider export to local environment as a potential feature so that VS Code could generate the XML files and place them in the selected Jitterbit Studio workspace, project and environment. That way you wouldn't need to copy the code back and forth between the two editors, cloud deployment would still require Jitterbit Studio.

That's just a very far future idea, for now the parser and interpreter still need a lot of language features and error handling implementation

@michal-kapala michal-kapala moved this to Nice-to-have in vscode-jitterbit Jul 3, 2023
@michal-kapala michal-kapala added the feature New feature or request label Jul 3, 2023
@michal-kapala
Copy link
Owner

I've created a GitHub project for a better overview and tracking of the features

@jessewindebank1809
Copy link
Author

Thanks @michal-kapala

Agreed, a conversion process would be the simplest way to go from vscode into the local Jitterbit project.

The Jitterbit collection of REST APIs do not currently support uploading specific project artifacts from what I see.

@michal-kapala
Copy link
Owner

michal-kapala commented Nov 8, 2023

I created jitterbit-extractor as a standalone solution for project code import into source files, the functionality will probably be moved over to the extension later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Nice to have
Development

No branches or pull requests

2 participants