wso2 carbon studio: deploy and use custom mediator in ESB - mediator

how to deploy custom mediator to ESB and use it by UI
I created a custom mediator and it's JAR file. Then created a carbon application project and selected a custom mediator artifact, after that exported CAR file of it.
Now I don't know where to locate the CAR file so that I can use my custom mediator in ESB (management console).
Another question is that, how can I use my mediator same first class mediator by UI (in management console)?
I created mediator using WSO2 developer studio 2.1.0

Q1. Now I don't know where to locate the CAR file so that I can use my custom mediator in ESB (management console)?
Ans: If you are using Management console to deploy the CAR file, then you need to use "Add" button under "Carbon Application" section on the Main tab of the ESB management console. Then you will be able to upload your CAR file from it and after couple of minutes you can try to create a Proxy service which uses that class mediator.
If you are using file system deploy the CAR file, in ESB 4.6.0 you need to deploy this CAR file to <ESB_HOME>/repository/carbonapps/0 folder.
Q2. how can I use my mediator same first class mediator by UI?
Ans: In the proxy service creation inside In sequence or out sequence, you can use Class mediator and provide the fully qualified name of the class mediator you deployed with CAR file. You can try to use "Load Class" button there to see whether class mediator is actually available in the server by that time.
Hope this answers your queries.
/Harshana

Related

Spring data cloud flow application properties not working

i am trying to use latest 2.10.0 snapshot version with spring boot 3 and i could not get the option to edit the application properties to change my data source url
please see my dashboard screenshot:
enter image description here
I have added my jar from local machine.
I need to get the edit option for application properties as well
Just to clarify, you are trying to register a custom Spring Boot 3 application with Spring Cloud Dataflow but are unable to edit any application properties. Is that correct?
Please be sure you did the same steps as described in app registration.
Are you able to edit the app properties for the built-in applications?
The options to update properties is available when you deploy a stream or task.
The configuration options available depend on the platform you are using.

How do you connect Service Now with Forge to create a new BIM 360 project?

I've used the process documented here https://github.com/Autodesk-Forge/forge-bim360.project.setup.tool to automate creating a new project HUB. We ask our users to fill a form on Service Now for each new project. My question is: Has anyone had any success linking the Service Now API to Forge? So that the variables that are filled by the end user on the Service Now form are used by Forge to create a new project HUB. Thanks.
I am not familiar with Service Now, but I've created integration with internal system.
Integration depends on what you need.
1.You can create a plugin for Service Now(If it is supports adding plugins) ,and create an app to fill into info that you need to create new project in Bim360(project name,users,etc.)
2.If you need to create a new project based on your info in Service Now,you should take Service Now Api, read all info that you need and then pass it to Autodesk Forge Api to create new project.

TFSFieldMapping Access is Denied

Hi I'm am trying to follow Microsoft's guidance to download the TFSFieldMapping file in order that I can make changes (https://learn.microsoft.com/en-us/azure/devops/reference/xml/upload-or-download-the-microsoft-project-mapping-file?view=tfs-2018)
Unfortunately I keep getting the error "Access is denied" when I try to connect to my collection and project
CD C:\Program Files\Common Files\microsoft shared\Team Foundation Server\16.0>TFSFieldMapping.exe download /collection:https://dev.azure.com/(My Company) /teamproject:(My Project)/mappingfile:"C:\Users\danie\Downloads\Test1234.xml"
"Access is denied"
That documentation appears to be for TFS (on-premise). Based on the URL, it looks like you are utilizing Azure DevOps Services. It seems to be a deprecated function, probably because of the way the field templates have been overhauled for work item forms.
Agree with Matt. TFSFieldMapping is only supports TFS 2018 and previous versions. Because their process is Hosted XML Process. Starting from Azure Devops Server 2019 and azure devops service, they use the inherited process. So they doesn't support the TFSFieldMapping.
From the URL in the TFSFieldMapping command, it seems that you are using the Azure Devops Service.
To change the Project field, you can create an inherited process and let the project use it. Then you can perform custom operations (e.g. Custom field) on the inherited process.
You could custom the field in Organization Settings -> Process.
Here is a doc about the detailed steps.
You could also use Rest API to Get and Update the field.
Get Work item field:
GET https://dev.azure.com/{organization}/{project}/_apis/wit/fields?api-version=5.1
Update Work item field:
PATCH https://dev.azure.com/{organization}/{project}/_apis/wit/fields/{fieldNameOrRefName}?api-version=4.1
Note: Corresponding to the inheritance process, you need to inherit first and then customize

Updating business services in OSB JDeveloper 12c

I have a scenario where the web service that the business service is based on has been updated. I'm looking for the correct approach to updating the business service in the OSB project to reflect the change. Can I download the WSDL and replace the contents of the existing WSDL file and XSD if necessary?
I would propose the following:
Replace the old WSDL and schemas with the new ones.
Go to your business service and select the new WSDL
Validate your project to see if the changes in the WSDL/XSD didn't break any XPaths, XQueries, namespaces,...
If everything validaties, test your changes

How to access service configuration?

I write a service using the .NET class ServiceBase. My service needs to be configured for proper operation. What is the usual way to add configuration information? I found that most services has some parameter is the registry.
e.g. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Winsock\Parameters
Is the registry the best place to add five or six values? How do I retrieve this information? I assume that the service name might change and I want to avoid hard coded registry names in the code.
What about .exe.config files? Are these preferable for .NET based services?
Just add a normal app.config (Application Configuration item) to your project - it'll be renamed to YourService.exe.config in the build process, and it's the default and preferred way of configuring a .NET application (console app or Windows Service or whatever)
What about .exe.config files? Are these preferable for .NET based services?
Yes, they are. This way your service is self hosted - it contains everything that's necessary for its operation.
But if you wanted to manipulate the registry you could use the Registry class.

Resources